Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.449/2.449, allocations: 390.3 MB / 402.8 MB, free: 6.668 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.00134/0.00134, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 221.3 MB / 0.7915 GB, free: 5.375 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 87.95 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.547e-05/4.551e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3188, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.873/5.192, allocations: 1.79 GB / 3.009 GB, free: 21.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/5.193, allocations: 103.9 kB / 3.009 GB, free: 21.8 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 1.253/6.445, allocations: 170.5 MB / 3.176 GB, free: 331.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.875e-06/6.445, allocations: 0 / 3.176 GB, free: 331.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002568/6.446, allocations: 91.92 kB / 3.176 GB, free: 331.1 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.006904/6.453, allocations: 3.107 MB / 3.179 GB, free: 327.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/6.453, allocations: 12.03 kB / 3.179 GB, free: 327.9 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006489/6.453, allocations: 463 kB / 3.179 GB, free: 327.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004337/6.458, allocations: 0.8265 MB / 3.18 GB, free: 326.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004295/6.462, allocations: 2.289 MB / 3.182 GB, free: 324.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/6.462, allocations: 234.2 kB / 3.183 GB, free: 324.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004513/6.463, allocations: 304 kB / 3.183 GB, free: 323.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008045/6.471, allocations: 4.366 MB / 3.187 GB, free: 319.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-05/6.471, allocations: 11.84 kB / 3.187 GB, free: 319.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/6.471, allocations: 132 kB / 3.187 GB, free: 319.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002176/6.471, allocations: 174 kB / 3.187 GB, free: 318.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00651/6.478, allocations: 3.932 MB / 3.191 GB, free: 315 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02452/6.502, allocations: 19.92 MB / 3.211 GB, free: 293.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/6.505, allocations: 1.82 MB / 3.213 GB, free: 291.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/6.506, allocations: 0.9478 MB / 3.213 GB, free: 290.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000253/6.506, allocations: 134.4 kB / 3.214 GB, free: 290.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/6.508, allocations: 1.077 MB / 3.215 GB, free: 289.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=150): time 3.617e-06/6.508, allocations: 7.938 kB / 3.215 GB, free: 289.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=187): time 0.02783/6.536, allocations: 11.85 MB / 3.226 GB, free: 277.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001807/6.536, allocations: 0.51 MB / 3.227 GB, free: 276.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003319/6.539, allocations: 2.054 MB / 3.229 GB, free: 274.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003421/6.539, allocations: 57.7 kB / 3.229 GB, free: 274.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.00151/6.541, allocations: 1.516 MB / 3.23 GB, free: 273.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006483/6.542, allocations: 0.6277 MB / 3.231 GB, free: 272.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/6.542, allocations: 40 kB / 3.231 GB, free: 272.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001561/6.542, allocations: 385.8 kB / 3.231 GB, free: 272.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/6.543, allocations: 1.093 MB / 3.232 GB, free: 271 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/6.545, allocations: 1.621 MB / 3.234 GB, free: 269.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/6.547, allocations: 1.356 MB / 3.235 GB, free: 267.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/6.547, allocations: 4 kB / 3.235 GB, free: 267.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.009697/6.557, allocations: 4.555 MB / 3.24 GB, free: 263.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001463/6.558, allocations: 4.671 MB / 3.244 GB, free: 258.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/6.558, allocations: 12 kB / 3.244 GB, free: 258.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006435/6.565, allocations: 1.854 MB / 3.246 GB, free: 256.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/6.567, allocations: 467.3 kB / 3.247 GB, free: 255.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009724/6.577, allocations: 9.528 MB / 3.256 GB, free: 245.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003103/6.58, allocations: 191.7 kB / 3.256 GB, free: 245.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/6.58, allocations: 87.97 kB / 3.256 GB, free: 245.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/6.58, allocations: 4 kB / 3.256 GB, free: 245.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00763/6.588, allocations: 3.699 MB / 3.26 GB, free: 241.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/6.588, allocations: 12 kB / 3.26 GB, free: 241.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003918/6.592, allocations: 1.173 MB / 3.261 GB, free: 240.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/6.594, allocations: 491.2 kB / 3.261 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008583/6.602, allocations: 7.516 MB / 3.269 GB, free: 232.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/6.605, allocations: 167.8 kB / 3.269 GB, free: 232.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004117/6.606, allocations: 87.97 kB / 3.269 GB, free: 232.1 MB / 1.167 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001016/6.607, allocations: 228.4 kB / 3.269 GB, free: 231.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/6.608, allocations: 241.1 kB / 3.269 GB, free: 231.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/6.619, allocations: 4.351 MB / 3.274 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/6.619, allocations: 20 kB / 3.274 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/6.619, allocations: 4 kB / 3.274 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/6.619, allocations: 15.95 kB / 3.274 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/6.639, allocations: 9.436 MB / 3.283 GB, free: 217.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/6.639, allocations: 4.594 kB / 3.283 GB, free: 217.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/6.641, allocations: 359.4 kB / 3.283 GB, free: 217.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006201/6.647, allocations: 1.823 MB / 3.285 GB, free: 215.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002189/6.647, allocations: 51.97 kB / 3.285 GB, free: 215.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/6.661, allocations: 13.13 MB / 3.298 GB, free: 201.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/6.661, allocations: 8 kB / 3.298 GB, free: 201.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/6.672, allocations: 4.689 MB / 3.302 GB, free: 196.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/6.674, allocations: 0.6931 MB / 3.303 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/6.675, allocations: 44.17 kB / 3.303 GB, free: 195.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002417/6.678, allocations: 187.8 kB / 3.303 GB, free: 195.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/6.678, allocations: 153.7 kB / 3.304 GB, free: 195.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000221/6.678, allocations: 67.98 kB / 3.304 GB, free: 195.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003843/6.682, allocations: 1.592 MB / 3.305 GB, free: 193.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.61e-07/6.682, allocations: 0 / 3.305 GB, free: 193.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.008527/6.691, allocations: 1.324 MB / 3.306 GB, free: 192.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (184): * Single equations (assignments): 176 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01368/6.705, allocations: 7.165 MB / 3.313 GB, free: 185.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01047/6.715, allocations: 5.373 MB / 3.319 GB, free: 179.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/6.715, allocations: 4 kB / 3.319 GB, free: 179.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003947/6.719, allocations: 2.289 MB / 3.321 GB, free: 177.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004745/6.724, allocations: 0.5924 MB / 3.322 GB, free: 176.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/6.743, allocations: 6.301 MB / 3.328 GB, free: 170.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003202/6.746, allocations: 2.538 MB / 3.33 GB, free: 167.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.005266/6.751, allocations: 1.384 MB / 3.331 GB, free: 166.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/6.753, allocations: 1.28 MB / 3.333 GB, free: 165.2 MB / 1.167 GB Notification: Performance of SimCode: time 9.72e-07/6.753, allocations: 3.938 kB / 3.333 GB, free: 165.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/6.875, allocations: 75.33 MB / 3.406 GB, free: 90.27 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/6.875, allocations: 262 kB / 3.407 GB, free: 89.93 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.255/11.13, allocations: 0 / 3.407 GB, free: 89.93 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat