Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 188.6 kB / 487.4 MB, free: 5.047 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009586/0.0009587, allocations: 93.56 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.889e-05/1.9e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2852, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.245/4.53, allocations: 1.765 GB / 2.971 GB, free: 118.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/4.53, allocations: 103.9 kB / 2.971 GB, free: 118.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1538/4.684, allocations: 68.27 MB / 3.038 GB, free: 49.41 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.014e-06/4.684, allocations: 0 / 3.038 GB, free: 49.41 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000164/4.684, allocations: 32 kB / 3.038 GB, free: 49.38 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003832/4.688, allocations: 1.409 MB / 3.039 GB, free: 47.91 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/4.688, allocations: 11.97 kB / 3.039 GB, free: 47.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00203/4.69, allocations: 301.8 kB / 3.04 GB, free: 47.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/4.692, allocations: 0.8417 MB / 3.041 GB, free: 46.71 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/4.692, allocations: 36 kB / 3.041 GB, free: 46.68 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002639/4.693, allocations: 60 kB / 3.041 GB, free: 46.62 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002043/4.695, allocations: 1.288 MB / 3.042 GB, free: 45.33 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/4.697, allocations: 1.123 MB / 3.043 GB, free: 44.12 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/4.697, allocations: 7.938 kB / 3.043 GB, free: 44.11 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/4.697, allocations: 7.953 kB / 3.043 GB, free: 44.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.177e-05/4.697, allocations: 57.98 kB / 3.043 GB, free: 44.05 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005714/4.703, allocations: 4.531 MB / 3.047 GB, free: 39.28 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/4.704, allocations: 0.9303 MB / 3.048 GB, free: 38.32 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/4.704, allocations: 383.9 kB / 3.049 GB, free: 37.95 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001948/4.705, allocations: 125.8 kB / 3.049 GB, free: 37.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006809/4.705, allocations: 0.5208 MB / 3.049 GB, free: 37.26 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 4.599e-06/4.705, allocations: 4 kB / 3.049 GB, free: 37.25 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002763/4.708, allocations: 1.36 MB / 3.051 GB, free: 35.88 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.417e-05/4.708, allocations: 295.5 kB / 3.051 GB, free: 35.52 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/4.709, allocations: 0.782 MB / 3.052 GB, free: 34.73 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/4.709, allocations: 25.7 kB / 3.052 GB, free: 34.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/4.71, allocations: 0.5543 MB / 3.052 GB, free: 34.14 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/4.71, allocations: 307.5 kB / 3.053 GB, free: 33.84 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/4.71, allocations: 0 / 3.053 GB, free: 33.84 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.838e-05/4.71, allocations: 341.9 kB / 3.053 GB, free: 33.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/4.711, allocations: 314.5 kB / 3.053 GB, free: 33.19 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/4.711, allocations: 498.6 kB / 3.054 GB, free: 32.63 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/4.712, allocations: 424.3 kB / 3.054 GB, free: 32.22 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/4.712, allocations: 0 / 3.054 GB, free: 32.22 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001883/4.714, allocations: 1.05 MB / 3.055 GB, free: 31.16 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002451/4.714, allocations: 1.149 MB / 3.056 GB, free: 29.92 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/4.714, allocations: 0 / 3.056 GB, free: 29.92 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006269/4.715, allocations: 124.7 kB / 3.056 GB, free: 29.79 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/4.716, allocations: 207.7 kB / 3.057 GB, free: 29.59 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004829/4.716, allocations: 0.646 MB / 3.057 GB, free: 28.92 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008386/4.717, allocations: 87.33 kB / 3.057 GB, free: 28.83 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.139e-05/4.717, allocations: 39.98 kB / 3.057 GB, free: 28.79 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/4.717, allocations: 8.062 kB / 3.057 GB, free: 28.79 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00121/4.718, allocations: 0.7833 MB / 3.058 GB, free: 28 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/4.718, allocations: 4 kB / 3.058 GB, free: 28 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/4.718, allocations: 8 kB / 3.058 GB, free: 27.99 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007501/4.719, allocations: 208.2 kB / 3.058 GB, free: 27.79 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/4.719, allocations: 19.91 kB / 3.058 GB, free: 27.77 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007884/4.72, allocations: 79.33 kB / 3.058 GB, free: 27.69 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.686e-05/4.72, allocations: 39.97 kB / 3.058 GB, free: 27.65 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002268/4.72, allocations: 133.2 kB / 3.059 GB, free: 27.52 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/4.72, allocations: 110.6 kB / 3.059 GB, free: 27.41 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002548/4.723, allocations: 1.301 MB / 3.06 GB, free: 26.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/4.723, allocations: 15.94 kB / 3.06 GB, free: 26.08 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/4.723, allocations: 0 / 3.06 GB, free: 26.08 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/4.723, allocations: 7.969 kB / 3.06 GB, free: 26.07 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003788/4.727, allocations: 2.504 MB / 3.062 GB, free: 23.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/4.727, allocations: 4.219 kB / 3.062 GB, free: 23.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007659/4.728, allocations: 195.7 kB / 3.063 GB, free: 23.31 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007724/4.728, allocations: 208.6 kB / 3.063 GB, free: 23.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.297e-05/4.728, allocations: 15.98 kB / 3.063 GB, free: 23.09 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/4.73, allocations: 1.76 MB / 3.065 GB, free: 21.21 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/4.73, allocations: 4 kB / 3.065 GB, free: 21.21 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/4.732, allocations: 1.412 MB / 3.066 GB, free: 19.71 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006456/4.733, allocations: 359.2 kB / 3.066 GB, free: 19.34 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/4.733, allocations: 4 kB / 3.066 GB, free: 19.34 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008742/4.734, allocations: 83.84 kB / 3.066 GB, free: 19.25 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/4.734, allocations: 73.16 kB / 3.066 GB, free: 19.18 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.427e-05/4.734, allocations: 39.98 kB / 3.066 GB, free: 19.14 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009011/4.735, allocations: 0.6163 MB / 3.067 GB, free: 18.53 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/4.735, allocations: 0 / 3.067 GB, free: 18.53 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001889/4.737, allocations: 475.8 kB / 3.068 GB, free: 18.07 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001485/4.739, allocations: 0.6004 MB / 3.068 GB, free: 17.57 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002105/4.741, allocations: 1.313 MB / 3.069 GB, free: 16.26 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/4.741, allocations: 4.5 kB / 3.069 GB, free: 16.26 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008827/4.742, allocations: 0.5962 MB / 3.07 GB, free: 15.65 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/4.743, allocations: 275.2 kB / 3.07 GB, free: 15.39 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/4.747, allocations: 1.756 MB / 3.072 GB, free: 13.59 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/4.748, allocations: 1.218 MB / 3.073 GB, free: 12.34 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002099/4.75, allocations: 0.5973 MB / 3.074 GB, free: 11.73 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/4.75, allocations: 91.39 kB / 3.074 GB, free: 11.65 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/4.75, allocations: 0 / 3.074 GB, free: 11.65 MB / 1.151 GB Notification: Performance of Templates: time 0.5988/5.349, allocations: 17.41 MB / 3.091 GB, free: 387.5 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches