Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.747/2.747, allocations: 436.5 MB / 0.7104 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003549, allocations: 11.94 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8932/0.8936, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine): time 0.01028/0.9039, allocations: 7.214 MB / 1.028 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1681/1.072, allocations: 129.1 MB / 1.154 GB, free: 8.406 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/1.073, allocations: 27.81 kB / 1.154 GB, free: 8.379 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0007021/1.074, allocations: 190.8 kB / 1.154 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002541/1.077, allocations: 0.735 MB / 1.155 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002828/1.079, allocations: 0.8802 MB / 1.156 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00222/1.082, allocations: 1.107 MB / 1.157 GB, free: 5.477 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002289/1.084, allocations: 1.287 MB / 1.158 GB, free: 4.137 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007408/1.085, allocations: 482 kB / 1.159 GB, free: 3.664 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007445/1.085, allocations: 0.521 MB / 1.159 GB, free: 3.141 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001122/1.086, allocations: 44 kB / 1.159 GB, free: 3.098 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/1.087, allocations: 419.5 kB / 1.159 GB, free: 2.688 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003148/1.087, allocations: 322.8 kB / 1.16 GB, free: 2.371 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002488/1.087, allocations: 268.9 kB / 1.16 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001816/1.089, allocations: 1.683 MB / 1.162 GB, free: 424 kB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.089, allocations: 4 kB / 1.162 GB, free: 420 kB / 0.9044 GB Notification: Performance of FrontEnd: time 3.507e-06/1.089, allocations: 0 / 1.162 GB, free: 420 kB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.256e-05/1.089, allocations: 0 / 1.162 GB, free: 420 kB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003368/1.093, allocations: 1.577 MB / 1.163 GB, free: 14.78 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/1.093, allocations: 15.98 kB / 1.163 GB, free: 14.76 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/1.094, allocations: 309.7 kB / 1.164 GB, free: 14.46 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/1.096, allocations: 0.9609 MB / 1.164 GB, free: 13.45 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.045e-05/1.096, allocations: 82.22 kB / 1.165 GB, free: 13.37 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/1.096, allocations: 108 kB / 1.165 GB, free: 13.27 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/1.098, allocations: 1.374 MB / 1.166 GB, free: 11.8 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/1.098, allocations: 3.938 kB / 1.166 GB, free: 11.8 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/1.098, allocations: 51.98 kB / 1.166 GB, free: 11.75 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.931e-05/1.099, allocations: 70.05 kB / 1.166 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002361/1.101, allocations: 1.507 MB / 1.168 GB, free: 10.16 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00673/1.108, allocations: 4.898 MB / 1.172 GB, free: 5.012 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/1.11, allocations: 1.101 MB / 1.173 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002293/1.11, allocations: 122 kB / 1.174 GB, free: 3.762 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/1.111, allocations: 0.643 MB / 1.174 GB, free: 3.098 MB / 0.92 GB Notification: Performance of pre-optimization done (n=103): time 5.159e-06/1.111, allocations: 0 / 1.174 GB, free: 3.098 MB / 0.92 GB Notification: Performance of matching and sorting (n=104): time 0.005146/1.116, allocations: 2.268 MB / 1.176 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/1.116, allocations: 252.3 kB / 1.177 GB, free: 500 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/1.118, allocations: 0.946 MB / 1.178 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001005/1.118, allocations: 45.7 kB / 1.178 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004704/1.118, allocations: 0.5625 MB / 1.178 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/1.119, allocations: 354.9 kB / 1.179 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/1.119, allocations: 20 kB / 1.179 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001211/1.119, allocations: 345.9 kB / 1.179 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006791/1.119, allocations: 377.8 kB / 1.179 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008114/1.12, allocations: 0.5677 MB / 1.18 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007734/1.121, allocations: 466.7 kB / 1.18 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/1.121, allocations: 0 / 1.18 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002735/1.124, allocations: 1.305 MB / 1.181 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004431/1.124, allocations: 1.221 MB / 1.183 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/1.124, allocations: 4 kB / 1.183 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/1.126, allocations: 264.5 kB / 1.183 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009951/1.127, allocations: 227.6 kB / 1.183 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/1.129, allocations: 2.03 MB / 1.185 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/1.131, allocations: 125 kB / 1.185 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.885e-05/1.131, allocations: 39.98 kB / 1.185 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/1.131, allocations: 4 kB / 1.185 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001696/1.132, allocations: 0.9681 MB / 1.186 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/1.132, allocations: 4.328 kB / 1.186 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/1.132, allocations: 8 kB / 1.186 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009009/1.133, allocations: 223.7 kB / 1.186 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/1.133, allocations: 8 kB / 1.186 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/1.134, allocations: 119.6 kB / 1.187 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.531e-05/1.135, allocations: 43.97 kB / 1.187 GB, free: 5.914 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 119 * 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.0008147/1.135, allocations: 444.7 kB / 1.187 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/1.136, allocations: 126.5 kB / 1.187 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003019/1.139, allocations: 1.486 MB / 1.189 GB, free: 3.844 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/1.139, allocations: 15.95 kB / 1.189 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.139, allocations: 7.938 kB / 1.189 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/1.139, allocations: 3.984 kB / 1.189 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004491/1.143, allocations: 2.856 MB / 1.191 GB, free: 0.8828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/1.143, allocations: 8.031 kB / 1.191 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007869/1.144, allocations: 199.7 kB / 1.192 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008017/1.145, allocations: 208.6 kB / 1.192 GB, free: 484 kB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/1.145, allocations: 27.98 kB / 1.192 GB, free: 456 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/1.147, allocations: 1.874 MB / 1.194 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.147, allocations: 7.953 kB / 1.194 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002686/1.15, allocations: 1.579 MB / 1.195 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006939/1.15, allocations: 363.1 kB / 1.196 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/1.151, allocations: 24 kB / 1.196 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009057/1.151, allocations: 112.9 kB / 1.196 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/1.152, allocations: 84.89 kB / 1.196 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.572e-05/1.152, allocations: 47.92 kB / 1.196 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009293/1.153, allocations: 0.6733 MB / 1.197 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.81e-07/1.153, allocations: 0 / 1.197 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001632/1.154, allocations: 0.4999 MB / 1.197 GB, free: 10.95 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001483/1.156, allocations: 0.6625 MB / 1.198 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.003185/1.159, allocations: 1.674 MB / 1.199 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.159, allocations: 0 / 1.199 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/1.16, allocations: 0.6953 MB / 1.2 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/1.162, allocations: 296.5 kB / 1.2 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/1.166, allocations: 2.967 MB / 1.203 GB, free: 4.793 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008186/1.167, allocations: 1.243 MB / 1.204 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001524/1.169, allocations: 468.8 kB / 1.205 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/1.169, allocations: 131.4 kB / 1.205 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of SimCode: time 7.41e-07/1.169, allocations: 0 / 1.205 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of Templates: time 0.03119/1.2, allocations: 18.09 MB / 1.223 GB, free: 1.016 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches