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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 99.86 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.001224/0.001225, allocations: 177.3 kB / 15.94 MB, free: 228 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.473/1.473, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.541/2.541, allocations: 390.2 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003265, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8356/0.836, allocations: 142.3 MB / 0.9535 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine): time 0.007687/0.8437, allocations: 7.199 MB / 0.9606 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1913/1.035, allocations: 129.1 MB / 1.087 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/1.037, allocations: 23.88 kB / 1.087 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00122/1.038, allocations: 206.7 kB / 1.087 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003793/1.042, allocations: 0.734 MB / 1.088 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003506/1.046, allocations: 0.8743 MB / 1.088 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003331/1.049, allocations: 1.103 MB / 1.089 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00334/1.052, allocations: 1.31 MB / 1.091 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/1.054, allocations: 470.1 kB / 1.091 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/1.055, allocations: 0.5143 MB / 1.092 GB, free: 2.246 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0004495/1.056, allocations: 48 kB / 1.092 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/1.058, allocations: 435.4 kB / 1.092 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0005636/1.058, allocations: 318.9 kB / 1.092 GB, free: 1.461 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0005523/1.059, allocations: 268.9 kB / 1.093 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002958/1.062, allocations: 1.683 MB / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/1.062, allocations: 0 / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.176e-06/1.062, allocations: 0 / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001092/1.062, allocations: 0 / 1.094 GB, free: 15.5 MB / 0.8575 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.004578/1.066, allocations: 1.585 MB / 1.096 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/1.066, allocations: 8.031 kB / 1.096 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/1.069, allocations: 321.7 kB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/1.071, allocations: 0.9453 MB / 1.097 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/1.071, allocations: 82.23 kB / 1.097 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003167/1.071, allocations: 116 kB / 1.097 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003032/1.075, allocations: 1.374 MB / 1.099 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.684e-05/1.075, allocations: 3.938 kB / 1.099 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/1.075, allocations: 52 kB / 1.099 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/1.075, allocations: 66.05 kB / 1.099 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/1.078, allocations: 1.514 MB / 1.1 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008205/1.086, allocations: 4.884 MB / 1.105 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/1.088, allocations: 1.1 MB / 1.106 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002408/1.089, allocations: 126 kB / 1.106 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/1.09, allocations: 0.6468 MB / 1.107 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=103): time 4.769e-06/1.09, allocations: 0 / 1.107 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=104): time 0.005663/1.096, allocations: 2.268 MB / 1.109 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/1.096, allocations: 244.3 kB / 1.109 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/1.097, allocations: 0.9421 MB / 1.11 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.441e-05/1.097, allocations: 49.7 kB / 1.11 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005495/1.098, allocations: 0.574 MB / 1.111 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/1.098, allocations: 335.1 kB / 1.111 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.857e-05/1.098, allocations: 20.11 kB / 1.111 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001586/1.099, allocations: 353.8 kB / 1.112 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006942/1.099, allocations: 389.7 kB / 1.112 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/1.1, allocations: 0.5677 MB / 1.112 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008081/1.101, allocations: 458.8 kB / 1.113 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/1.101, allocations: 4 kB / 1.113 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002781/1.104, allocations: 1.297 MB / 1.114 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006163/1.104, allocations: 1.232 MB / 1.115 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/1.104, allocations: 4 kB / 1.115 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/1.106, allocations: 260.5 kB / 1.116 GB, free: 8.926 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009204/1.107, allocations: 219.7 kB / 1.116 GB, free: 8.711 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003087/1.11, allocations: 2.046 MB / 1.118 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/1.111, allocations: 121 kB / 1.118 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/1.111, allocations: 36.06 kB / 1.118 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/1.111, allocations: 4 kB / 1.118 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001788/1.113, allocations: 0.9719 MB / 1.119 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.113, allocations: 4 kB / 1.119 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/1.113, allocations: 8.406 kB / 1.119 GB, free: 5.391 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/1.114, allocations: 231.6 kB / 1.119 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/1.114, allocations: 11.98 kB / 1.119 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009144/1.115, allocations: 111.3 kB / 1.119 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.582e-05/1.115, allocations: 51.97 kB / 1.119 GB, free: 4.992 MB / 0.8731 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.0008078/1.116, allocations: 436.8 kB / 1.12 GB, free: 4.555 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/1.116, allocations: 122.5 kB / 1.12 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003076/1.119, allocations: 1.482 MB / 1.121 GB, free: 2.934 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.119, allocations: 12 kB / 1.121 GB, free: 2.922 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/1.119, allocations: 3.938 kB / 1.121 GB, free: 2.918 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/1.119, allocations: 11.97 kB / 1.121 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00473/1.124, allocations: 2.848 MB / 1.124 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/1.124, allocations: 0 / 1.124 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/1.124, allocations: 203.7 kB / 1.124 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007925/1.125, allocations: 208.8 kB / 1.125 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.613e-05/1.125, allocations: 31.98 kB / 1.125 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00205/1.127, allocations: 1.874 MB / 1.126 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.127, allocations: 4 kB / 1.126 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/1.13, allocations: 1.583 MB / 1.128 GB, free: 11.87 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006863/1.131, allocations: 363.1 kB / 1.128 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/1.131, allocations: 27.95 kB / 1.128 GB, free: 11.47 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009094/1.132, allocations: 112.9 kB / 1.128 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/1.132, allocations: 80.88 kB / 1.128 GB, free: 11.28 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.722e-05/1.132, allocations: 43.98 kB / 1.129 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001019/1.133, allocations: 0.6694 MB / 1.129 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/1.133, allocations: 0 / 1.129 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001694/1.135, allocations: 0.5116 MB / 1.13 GB, free: 10.05 MB / 0.8887 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.001632/1.137, allocations: 0.6562 MB / 1.13 GB, free: 9.59 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00326/1.14, allocations: 1.677 MB / 1.132 GB, free: 7.902 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.14, allocations: 0 / 1.132 GB, free: 7.902 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001173/1.141, allocations: 0.7005 MB / 1.133 GB, free: 7.191 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/1.143, allocations: 305.5 kB / 1.133 GB, free: 6.898 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/1.147, allocations: 2.944 MB / 1.136 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009021/1.148, allocations: 1.253 MB / 1.137 GB, free: 2.621 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001529/1.15, allocations: 468.8 kB / 1.137 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/1.15, allocations: 131.3 kB / 1.138 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of SimCode: time 8.72e-07/1.15, allocations: 0 / 1.138 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of Templates: time 0.03252/1.183, allocations: 18.11 MB / 1.155 GB, free: 100 kB / 0.9044 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