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.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.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.001271/0.001271, allocations: 100.2 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.001441/0.001441, 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.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.437/2.437, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 8 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8195/0.8199, allocations: 142.3 MB / 0.9536 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine): time 0.01179/0.8318, allocations: 7.198 MB / 0.9606 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.175/1.007, allocations: 129.1 MB / 1.087 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/1.008, allocations: 19.88 kB / 1.087 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007662/1.009, allocations: 198.8 kB / 1.087 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002852/1.012, allocations: 0.7304 MB / 1.088 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003008/1.015, allocations: 0.8807 MB / 1.088 GB, free: 5.676 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002509/1.018, allocations: 1.107 MB / 1.09 GB, free: 4.566 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002693/1.02, allocations: 1.295 MB / 1.091 GB, free: 3.215 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008221/1.021, allocations: 478 kB / 1.091 GB, free: 2.746 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008842/1.022, allocations: 0.5183 MB / 1.092 GB, free: 2.227 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001127/1.022, allocations: 44 kB / 1.092 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/1.024, allocations: 435.4 kB / 1.092 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003502/1.024, allocations: 318.9 kB / 1.093 GB, free: 1.445 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000283/1.024, allocations: 265 kB / 1.093 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002219/1.026, allocations: 1.679 MB / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/1.026, allocations: 0 / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.444e-06/1.026, allocations: 0 / 1.094 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.419e-05/1.026, 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.003243/1.03, allocations: 1.593 MB / 1.096 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/1.03, allocations: 8.031 kB / 1.096 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00032/1.03, allocations: 173.3 kB / 1.096 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/1.032, allocations: 321.7 kB / 1.096 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/1.033, allocations: 0.9453 MB / 1.097 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.293e-05/1.034, allocations: 86.23 kB / 1.097 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/1.034, allocations: 111.9 kB / 1.098 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/1.036, allocations: 1.374 MB / 1.099 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/1.036, allocations: 4 kB / 1.099 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/1.036, allocations: 44 kB / 1.099 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/1.036, allocations: 77.97 kB / 1.099 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/1.039, allocations: 1.518 MB / 1.101 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006994/1.046, allocations: 4.879 MB / 1.105 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/1.048, allocations: 1.1 MB / 1.106 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/1.048, allocations: 130 kB / 1.107 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/1.049, allocations: 0.6468 MB / 1.107 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=103): time 2.775e-06/1.049, allocations: 0 / 1.107 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=104): time 0.005159/1.054, allocations: 2.268 MB / 1.109 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/1.055, allocations: 244.3 kB / 1.11 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/1.056, allocations: 0.9459 MB / 1.111 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.377e-05/1.056, allocations: 49.7 kB / 1.111 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/1.057, allocations: 0.5703 MB / 1.111 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/1.057, allocations: 339 kB / 1.111 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/1.057, allocations: 20 kB / 1.111 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001609/1.057, allocations: 349.9 kB / 1.112 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006877/1.058, allocations: 381.8 kB / 1.112 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008626/1.059, allocations: 0.5715 MB / 1.113 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000797/1.059, allocations: 462.8 kB / 1.113 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/1.059, allocations: 0 / 1.113 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00275/1.062, allocations: 1.297 MB / 1.114 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006715/1.063, allocations: 1.23 MB / 1.116 GB, free: 8.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.063, allocations: 4 kB / 1.116 GB, free: 8.988 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/1.064, allocations: 264.4 kB / 1.116 GB, free: 8.727 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009262/1.065, allocations: 219.7 kB / 1.116 GB, free: 8.512 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003179/1.068, allocations: 2.051 MB / 1.118 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/1.069, allocations: 115.4 kB / 1.118 GB, free: 6.215 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.402e-05/1.07, allocations: 43.98 kB / 1.118 GB, free: 6.172 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/1.07, allocations: 7.953 kB / 1.118 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001727/1.071, allocations: 0.9602 MB / 1.119 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/1.071, allocations: 4 kB / 1.119 GB, free: 5.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/1.071, allocations: 8 kB / 1.119 GB, free: 5.191 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000891/1.072, allocations: 228.1 kB / 1.119 GB, free: 4.969 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/1.072, allocations: 15.92 kB / 1.119 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009611/1.073, allocations: 117.5 kB / 1.12 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/1.073, allocations: 43.97 kB / 1.12 GB, free: 4.797 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.0008208/1.074, allocations: 440.8 kB / 1.12 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/1.074, allocations: 122.5 kB / 1.12 GB, free: 4.234 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/1.077, allocations: 1.486 MB / 1.122 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/1.077, allocations: 12 kB / 1.122 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.077, allocations: 4 kB / 1.122 GB, free: 2.715 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/1.077, allocations: 7.969 kB / 1.122 GB, free: 2.707 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004775/1.082, allocations: 2.848 MB / 1.124 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/1.082, allocations: 0 / 1.124 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008025/1.083, allocations: 203.7 kB / 1.125 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008089/1.084, allocations: 208.8 kB / 1.125 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.128e-05/1.084, allocations: 31.98 kB / 1.125 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002229/1.086, allocations: 1.87 MB / 1.127 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.086, allocations: 4 kB / 1.127 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/1.089, allocations: 1.575 MB / 1.128 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006837/1.09, allocations: 367.1 kB / 1.129 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/1.09, allocations: 28.23 kB / 1.129 GB, free: 11.28 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/1.091, allocations: 111.8 kB / 1.129 GB, free: 11.17 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/1.091, allocations: 92.81 kB / 1.129 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/1.091, allocations: 39.98 kB / 1.129 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001003/1.092, allocations: 0.6694 MB / 1.129 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.2e-07/1.092, allocations: 0 / 1.129 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001639/1.094, allocations: 0.5038 MB / 1.13 GB, free: 9.855 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.004844/1.099, allocations: 3.191 MB / 1.133 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003427/1.102, allocations: 1.673 MB / 1.135 GB, free: 5.121 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.102, allocations: 0 / 1.135 GB, free: 5.121 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001274/1.104, allocations: 0.696 MB / 1.135 GB, free: 4.414 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/1.105, allocations: 307.4 kB / 1.136 GB, free: 4.121 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.123, allocations: 9.409 MB / 1.145 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/1.124, allocations: 1.253 MB / 1.146 GB, free: 9.098 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002038/1.126, allocations: 476.9 kB / 1.147 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/1.127, allocations: 0.5265 MB / 1.147 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of SimCode: time 2.234e-06/1.128, allocations: 0 / 1.147 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06833/1.196, allocations: 28.64 MB / 1.175 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002998/1.196, allocations: 288.4 kB / 1.175 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/3.676, allocations: 3.938 kB / 1.175 GB, free: 11.48 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat