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.319/2.319, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001046/0.001046, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.485/1.485, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009072/0.0009075, allocations: 95.66 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.9e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2545, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.725/4.979, allocations: 1.789 GB / 2.995 GB, free: 93.48 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003663/4.98, allocations: 116.2 kB / 2.995 GB, free: 93.38 MB / 1.151 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 1.052/6.032, allocations: 164.5 MB / 3.156 GB, free: 367.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.693e-06/6.032, allocations: 1.859 kB / 3.156 GB, free: 367.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004093/6.032, allocations: 93.47 kB / 3.156 GB, free: 367.8 MB / 1.151 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.0105/6.043, allocations: 3.117 MB / 3.159 GB, free: 366.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/6.043, allocations: 8.406 kB / 3.159 GB, free: 366.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005382/6.048, allocations: 0.8242 MB / 3.16 GB, free: 365.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00558/6.054, allocations: 2.278 MB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/6.054, allocations: 102.9 kB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/6.055, allocations: 181.9 kB / 3.162 GB, free: 364.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007521/6.063, allocations: 3.525 MB / 3.166 GB, free: 363.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/6.074, allocations: 3.917 MB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/6.074, allocations: 11.59 kB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008701/6.075, allocations: 7.672 kB / 3.169 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/6.075, allocations: 180.2 kB / 3.17 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02839/6.103, allocations: 19.15 MB / 3.188 GB, free: 347.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003163/6.106, allocations: 1.745 MB / 3.19 GB, free: 346.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00182/6.108, allocations: 1.113 MB / 3.191 GB, free: 346.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002598/6.109, allocations: 135.3 kB / 3.191 GB, free: 346.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/6.11, allocations: 1.045 MB / 3.192 GB, free: 345.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=150): time 6.182e-06/6.11, allocations: 0 / 3.192 GB, free: 345.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=187): time 0.01921/6.129, allocations: 9.891 MB / 3.202 GB, free: 339.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/6.13, allocations: 0.5045 MB / 3.202 GB, free: 338.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002567/6.132, allocations: 1.873 MB / 3.204 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003558/6.132, allocations: 29.27 kB / 3.204 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001253/6.134, allocations: 1.526 MB / 3.206 GB, free: 336.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/6.134, allocations: 0.6004 MB / 3.206 GB, free: 335.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/6.134, allocations: 0 / 3.206 GB, free: 335.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001024/6.134, allocations: 389.8 kB / 3.207 GB, free: 335.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/6.136, allocations: 1.058 MB / 3.208 GB, free: 334.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/6.137, allocations: 1.574 MB / 3.209 GB, free: 332.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/6.139, allocations: 1.376 MB / 3.211 GB, free: 331.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/6.139, allocations: 4 kB / 3.211 GB, free: 331.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.008318/6.147, allocations: 4.189 MB / 3.215 GB, free: 327 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007531/6.148, allocations: 4.641 MB / 3.219 GB, free: 322 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/6.148, allocations: 8 kB / 3.219 GB, free: 322 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005157/6.153, allocations: 1.363 MB / 3.221 GB, free: 320.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/6.155, allocations: 487.2 kB / 3.221 GB, free: 320.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009328/6.165, allocations: 9.054 MB / 3.23 GB, free: 310.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003207/6.168, allocations: 163.6 kB / 3.23 GB, free: 310.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003612/6.168, allocations: 87.97 kB / 3.23 GB, free: 310.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/6.168, allocations: 4 kB / 3.23 GB, free: 310.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00337/6.172, allocations: 2.183 MB / 3.232 GB, free: 308.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/6.172, allocations: 8.219 kB / 3.232 GB, free: 308.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/6.172, allocations: 28 kB / 3.232 GB, free: 308.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/6.174, allocations: 0.5031 MB / 3.233 GB, free: 307.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/6.174, allocations: 27.92 kB / 3.233 GB, free: 307.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/6.175, allocations: 107.7 kB / 3.233 GB, free: 307.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/6.176, allocations: 87.97 kB / 3.233 GB, free: 307.4 MB / 1.151 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.0005114/6.176, allocations: 175 kB / 3.233 GB, free: 307.3 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008207/6.184, allocations: 3.985 MB / 3.237 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000672/6.185, allocations: 229.2 kB / 3.237 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009081/6.194, allocations: 4.233 MB / 3.241 GB, free: 298.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/6.194, allocations: 20 kB / 3.241 GB, free: 298.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/6.194, allocations: 10.95 kB / 3.241 GB, free: 298.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/6.194, allocations: 15.95 kB / 3.241 GB, free: 298.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/6.208, allocations: 8.74 MB / 3.25 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/6.208, allocations: 4 kB / 3.25 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/6.21, allocations: 359.5 kB / 3.25 GB, free: 289.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005911/6.216, allocations: 1.8 MB / 3.252 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002707/6.216, allocations: 19.98 kB / 3.252 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/6.228, allocations: 12.51 MB / 3.264 GB, free: 274.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/6.228, allocations: 7.938 kB / 3.264 GB, free: 274.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008804/6.237, allocations: 4.591 MB / 3.269 GB, free: 269.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/6.238, allocations: 0.6814 MB / 3.27 GB, free: 268.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003787/6.239, allocations: 11.98 kB / 3.27 GB, free: 268.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/6.241, allocations: 231.6 kB / 3.27 GB, free: 268.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003608/6.241, allocations: 149.7 kB / 3.27 GB, free: 268.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/6.241, allocations: 63.97 kB / 3.27 GB, free: 268.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001749/6.243, allocations: 1.428 MB / 3.271 GB, free: 267 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.3e-07/6.243, allocations: 0 / 3.271 GB, free: 267 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003571/6.246, allocations: 1.179 MB / 3.272 GB, free: 265.9 MB / 1.151 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.01052/6.257, allocations: 7.047 MB / 3.279 GB, free: 258.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006648/6.264, allocations: 4.406 MB / 3.284 GB, free: 254.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/6.264, allocations: 0 / 3.284 GB, free: 254.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003261/6.267, allocations: 2.225 MB / 3.286 GB, free: 252.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/6.27, allocations: 0.5252 MB / 3.286 GB, free: 251.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/6.281, allocations: 6.118 MB / 3.292 GB, free: 245.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001886/6.283, allocations: 2.538 MB / 3.295 GB, free: 242.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003516/6.286, allocations: 1.372 MB / 3.296 GB, free: 241.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/6.287, allocations: 1.276 MB / 3.297 GB, free: 240.2 MB / 1.151 GB Notification: Performance of SimCode: time 7.72e-07/6.287, allocations: 4 kB / 3.297 GB, free: 240.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/6.39, allocations: 67.83 MB / 3.364 GB, free: 172.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/6.39, allocations: 210 kB / 3.364 GB, free: 172.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.797/10.19, allocations: 0 / 3.364 GB, free: 172.4 MB / 1.151 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