Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.1-maint.9.1.x/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.001085, 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.0009733/0.0009734, 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.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.475/2.475, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003563, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7931/0.7935, allocations: 142.3 MB / 0.9536 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.007219/0.8007, allocations: 6.278 MB / 0.9597 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1645/0.9653, allocations: 129.1 MB / 1.086 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.9666, allocations: 23.88 kB / 1.086 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007899/0.9674, allocations: 190.8 kB / 1.086 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003191/0.9706, allocations: 0.7482 MB / 1.087 GB, free: 7.508 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00316/0.9737, allocations: 0.8729 MB / 1.088 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002538/0.9763, allocations: 1.099 MB / 1.089 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002469/0.9788, allocations: 1.299 MB / 1.09 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009385/0.9797, allocations: 474 kB / 1.09 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009217/0.9807, allocations: 0.5222 MB / 1.091 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.9808, allocations: 40 kB / 1.091 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.982, allocations: 439.3 kB / 1.091 GB, free: 2.73 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003406/0.9824, allocations: 318.9 kB / 1.092 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.9827, allocations: 268.9 kB / 1.092 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.9846, allocations: 1.675 MB / 1.094 GB, free: 480 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.9846, allocations: 0 / 1.094 GB, free: 480 kB / 0.8419 GB Notification: Performance of FrontEnd: time 3.116e-06/0.9846, allocations: 0 / 1.094 GB, free: 480 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.478e-05/0.9847, allocations: 0 / 1.094 GB, free: 480 kB / 0.8419 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.003137/0.9878, allocations: 1.593 MB / 1.095 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.9879, allocations: 8.031 kB / 1.095 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002378/0.9881, allocations: 177.3 kB / 1.095 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.9895, allocations: 313.8 kB / 1.096 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.9911, allocations: 0.9492 MB / 1.097 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.339e-05/0.9912, allocations: 82.23 kB / 1.097 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.9914, allocations: 111.9 kB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.9936, allocations: 1.378 MB / 1.098 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.9937, allocations: 7.844 kB / 1.098 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.9938, allocations: 47.94 kB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/0.9939, allocations: 66.05 kB / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002433/0.9963, allocations: 1.514 MB / 1.1 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006734/1.003, allocations: 4.882 MB / 1.104 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/1.005, allocations: 1.112 MB / 1.105 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002121/1.005, allocations: 122 kB / 1.106 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/1.006, allocations: 0.6468 MB / 1.106 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=103): time 2.665e-06/1.006, allocations: 0 / 1.106 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=104): time 0.005373/1.012, allocations: 2.264 MB / 1.108 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/1.012, allocations: 248.3 kB / 1.109 GB, free: 368 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/1.013, allocations: 0.942 MB / 1.11 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000107/1.014, allocations: 49.7 kB / 1.11 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000574/1.014, allocations: 0.5701 MB / 1.11 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003517/1.014, allocations: 347.1 kB / 1.111 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.375e-05/1.015, allocations: 20 kB / 1.111 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000164/1.015, allocations: 345.9 kB / 1.111 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00069/1.015, allocations: 381.7 kB / 1.111 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009065/1.016, allocations: 0.5638 MB / 1.112 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008167/1.017, allocations: 470.8 kB / 1.112 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.017, allocations: 0 / 1.112 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002721/1.02, allocations: 1.289 MB / 1.114 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004904/1.02, allocations: 1.232 MB / 1.115 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.02, allocations: 4 kB / 1.115 GB, free: 9.965 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/1.022, allocations: 264.5 kB / 1.115 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008946/1.022, allocations: 223.7 kB / 1.115 GB, free: 9.484 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/1.026, allocations: 2.038 MB / 1.117 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/1.027, allocations: 123.4 kB / 1.117 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/1.027, allocations: 40.09 kB / 1.117 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/1.027, allocations: 13.61 kB / 1.117 GB, free: 7.141 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001768/1.028, allocations: 0.9641 MB / 1.118 GB, free: 6.176 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/1.028, allocations: 4 kB / 1.118 GB, free: 6.172 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/1.029, allocations: 8 kB / 1.118 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008865/1.029, allocations: 228 kB / 1.119 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/1.029, allocations: 12 kB / 1.119 GB, free: 5.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/1.03, allocations: 115.3 kB / 1.119 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-05/1.03, allocations: 43.97 kB / 1.119 GB, free: 5.773 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.0007498/1.031, allocations: 440.8 kB / 1.119 GB, free: 5.332 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/1.032, allocations: 126.4 kB / 1.119 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/1.035, allocations: 1.482 MB / 1.121 GB, free: 3.707 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/1.035, allocations: 12 kB / 1.121 GB, free: 3.695 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/1.035, allocations: 0 / 1.121 GB, free: 3.695 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/1.035, allocations: 7.922 kB / 1.121 GB, free: 3.688 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004903/1.04, allocations: 2.855 MB / 1.123 GB, free: 0.7539 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.04, allocations: 4 kB / 1.123 GB, free: 0.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007741/1.04, allocations: 199.7 kB / 1.124 GB, free: 0.5547 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008042/1.041, allocations: 208.8 kB / 1.124 GB, free: 356 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.54e-05/1.041, allocations: 27.98 kB / 1.124 GB, free: 328 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/1.044, allocations: 1.882 MB / 1.126 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.044, allocations: 4 kB / 1.126 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002803/1.046, allocations: 1.575 MB / 1.127 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007702/1.047, allocations: 367.1 kB / 1.128 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/1.047, allocations: 27.95 kB / 1.128 GB, free: 12.24 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009824/1.048, allocations: 114.6 kB / 1.128 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/1.049, allocations: 84.88 kB / 1.128 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/1.049, allocations: 39.98 kB / 1.128 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001186/1.05, allocations: 0.6733 MB / 1.129 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.51e-07/1.05, allocations: 0 / 1.129 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002075/1.052, allocations: 0.5038 MB / 1.129 GB, free: 10.82 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.005155/1.057, allocations: 3.178 MB / 1.132 GB, free: 7.781 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00349/1.061, allocations: 1.666 MB / 1.134 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.061, allocations: 0 / 1.134 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/1.062, allocations: 0.7075 MB / 1.134 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/1.064, allocations: 309.7 kB / 1.135 GB, free: 5.098 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.082, allocations: 9.419 MB / 1.144 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/1.084, allocations: 1.247 MB / 1.145 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002195/1.086, allocations: 468.9 kB / 1.146 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009497/1.087, allocations: 0.5227 MB / 1.146 GB, free: 9.086 MB / 0.9044 GB Notification: Performance of SimCode: time 1.382e-06/1.087, allocations: 4 kB / 1.146 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0532/1.14, allocations: 28.63 MB / 1.174 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/1.14, allocations: 271.6 kB / 1.174 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.651, allocations: 0 / 1.174 GB, free: 12.45 MB / 0.9356 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat