Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.307/2.307, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.00103/0.00103, allocations: 181 kB / 498.1 MB, free: 5.758 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.53/1.53, allocations: 223.2 MB / 0.7948 GB, free: 18.93 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.0008824/0.0008825, allocations: 100.1 kB / 0.9346 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003711, allocations: 9.906 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3144, allocations: 142.4 MB / 1.223 GB, free: 89.53 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.516/4.831, allocations: 1.79 GB / 3.013 GB, free: 191.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003344/4.831, allocations: 116.8 kB / 3.013 GB, free: 191.4 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 0.3769/5.208, allocations: 171.2 MB / 3.18 GB, free: 18.79 MB / 1.167 GB Notification: Performance of FrontEnd: time 4.007e-06/5.208, allocations: 0 / 3.18 GB, free: 18.79 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004234/5.208, allocations: 87.92 kB / 3.18 GB, free: 18.71 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.01202/5.221, allocations: 3.478 MB / 3.183 GB, free: 15.16 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/5.221, allocations: 8.031 kB / 3.183 GB, free: 15.15 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002141/5.223, allocations: 463 kB / 3.184 GB, free: 14.69 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005616/5.228, allocations: 0.8344 MB / 3.185 GB, free: 13.85 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006653/5.235, allocations: 2.297 MB / 3.187 GB, free: 11.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/5.235, allocations: 230.2 kB / 3.187 GB, free: 11.27 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001334/5.237, allocations: 307.9 kB / 3.187 GB, free: 10.97 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/5.248, allocations: 4.431 MB / 3.192 GB, free: 6.379 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/5.249, allocations: 4 kB / 3.192 GB, free: 6.375 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009421/5.25, allocations: 136 kB / 3.192 GB, free: 6.242 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002046/5.25, allocations: 174 kB / 3.192 GB, free: 6.07 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008063/5.258, allocations: 4.032 MB / 3.196 GB, free: 2.027 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7094/5.967, allocations: 19.9 MB / 3.215 GB, free: 324.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003483/5.971, allocations: 1.877 MB / 3.217 GB, free: 324.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002504/5.971, allocations: 131.3 kB / 3.217 GB, free: 324.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001824/5.973, allocations: 1.109 MB / 3.218 GB, free: 324 MB / 1.167 GB Notification: Performance of pre-optimization done (n=150): time 3.637e-06/5.973, allocations: 0 / 3.218 GB, free: 324 MB / 1.167 GB Notification: Performance of matching and sorting (n=187): time 0.03874/6.012, allocations: 13.43 MB / 3.232 GB, free: 320.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001751/6.012, allocations: 0.5128 MB / 3.232 GB, free: 319.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00423/6.016, allocations: 2.072 MB / 3.234 GB, free: 319.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0005288/6.017, allocations: 60.66 kB / 3.234 GB, free: 319.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001724/6.018, allocations: 1.52 MB / 3.236 GB, free: 318.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007013/6.019, allocations: 0.6183 MB / 3.236 GB, free: 318.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/6.019, allocations: 42.44 kB / 3.236 GB, free: 318.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001216/6.019, allocations: 385.4 kB / 3.237 GB, free: 318.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/6.021, allocations: 1.132 MB / 3.238 GB, free: 318.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/6.023, allocations: 1.657 MB / 3.239 GB, free: 317.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/6.026, allocations: 1.386 MB / 3.241 GB, free: 317.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/6.026, allocations: 6.938 kB / 3.241 GB, free: 317.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.012/6.038, allocations: 4.734 MB / 3.245 GB, free: 317.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009354/6.039, allocations: 4.658 MB / 3.25 GB, free: 312.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.994e-05/6.039, allocations: 11.19 kB / 3.25 GB, free: 312.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008542/6.047, allocations: 2.055 MB / 3.252 GB, free: 312.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/6.049, allocations: 479.3 kB / 3.252 GB, free: 312.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/6.06, allocations: 9.847 MB / 3.262 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/6.063, allocations: 203.2 kB / 3.262 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/6.063, allocations: 86.58 kB / 3.262 GB, free: 307.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/6.063, allocations: 3.938 kB / 3.262 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008413/6.072, allocations: 3.87 MB / 3.266 GB, free: 307.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/6.072, allocations: 11.69 kB / 3.266 GB, free: 307.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005334/6.077, allocations: 1.387 MB / 3.267 GB, free: 307.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/6.079, allocations: 485.2 kB / 3.268 GB, free: 307.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008411/6.088, allocations: 7.841 MB / 3.276 GB, free: 303.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/6.09, allocations: 168.5 kB / 3.276 GB, free: 303.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/6.09, allocations: 89.06 kB / 3.276 GB, free: 303.3 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 = true ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "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 () * Number of clocked 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.002536/6.093, allocations: 1.277 MB / 3.277 GB, free: 303.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006123/6.093, allocations: 234.4 kB / 3.277 GB, free: 303 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/6.104, allocations: 4.515 MB / 3.282 GB, free: 302.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/6.104, allocations: 23.44 kB / 3.282 GB, free: 302.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/6.104, allocations: 3.656 kB / 3.282 GB, free: 302.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.336e-05/6.104, allocations: 15.47 kB / 3.282 GB, free: 302.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01843/6.122, allocations: 9.605 MB / 3.291 GB, free: 301.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/6.123, allocations: 2.062 kB / 3.291 GB, free: 301.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/6.124, allocations: 357.4 kB / 3.291 GB, free: 301.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007716/6.132, allocations: 2.011 MB / 3.293 GB, free: 301.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003327/6.132, allocations: 50.5 kB / 3.293 GB, free: 301.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/6.146, allocations: 13.64 MB / 3.307 GB, free: 293 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/6.146, allocations: 13.91 kB / 3.307 GB, free: 293 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/6.156, allocations: 4.859 MB / 3.311 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002327/6.158, allocations: 0.6887 MB / 3.312 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004701/6.159, allocations: 42.75 kB / 3.312 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/6.16, allocations: 196.9 kB / 3.312 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003873/6.161, allocations: 149.8 kB / 3.313 GB, free: 290.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/6.161, allocations: 67.75 kB / 3.313 GB, free: 290.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002152/6.163, allocations: 1.613 MB / 3.314 GB, free: 289.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 3.51e-07/6.163, allocations: 0 / 3.314 GB, free: 289.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004176/6.167, allocations: 1.322 MB / 3.315 GB, free: 289.6 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) * Number of clocked states: 0 () * 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.01233/6.18, allocations: 7.389 MB / 3.323 GB, free: 285.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.009335/6.189, allocations: 5.415 MB / 3.328 GB, free: 283.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/6.189, allocations: 6.281 kB / 3.328 GB, free: 283.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003526/6.193, allocations: 2.337 MB / 3.33 GB, free: 282.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/6.195, allocations: 0.583 MB / 3.331 GB, free: 282.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/6.21, allocations: 17.71 MB / 3.348 GB, free: 268.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/6.212, allocations: 2.533 MB / 3.351 GB, free: 267.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003092/6.215, allocations: 1.003 MB / 3.352 GB, free: 267.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/6.217, allocations: 1.326 MB / 3.353 GB, free: 266.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.313e-06/6.217, allocations: 0 / 3.353 GB, free: 266.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09252/6.309, allocations: 71.86 MB / 3.423 GB, free: 225.5 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/6.31, allocations: 279.9 kB / 3.423 GB, free: 225.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/10.13, allocations: 7.172 kB / 3.423 GB, free: 225.2 MB / 1.167 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat