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/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.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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.837/1.837, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001025/0.001025, allocations: 176.7 kB / 487 MB, free: 5.352 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.148/1.148, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0008255/0.0008255, allocations: 97.23 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4303/0.4312, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.6122, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.549/3.162, allocations: 1.765 GB / 2.971 GB, free: 69.69 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/3.162, allocations: 105.8 kB / 2.971 GB, free: 69.64 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.1411/3.303, allocations: 70.67 MB / 3.04 GB, free: 1.375 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/3.303, allocations: 8 kB / 3.04 GB, free: 1.367 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001367/3.305, allocations: 305.8 kB / 3.04 GB, free: 1.066 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/3.306, allocations: 0.8456 MB / 3.041 GB, free: 180 kB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/3.306, allocations: 32 kB / 3.041 GB, free: 148 kB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/3.306, allocations: 63.91 kB / 3.041 GB, free: 84 kB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.284/3.59, allocations: 1.305 MB / 3.042 GB, free: 0.516 GB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/3.592, allocations: 1.14 MB / 3.043 GB, free: 0.5158 GB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/3.592, allocations: 2.062 kB / 3.043 GB, free: 0.5158 GB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/3.592, allocations: 3.438 kB / 3.043 GB, free: 0.5158 GB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.181e-05/3.592, allocations: 59.94 kB / 3.043 GB, free: 0.5158 GB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/3.597, allocations: 4.555 MB / 3.048 GB, free: 0.5137 GB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/3.598, allocations: 0.9068 MB / 3.049 GB, free: 0.5136 GB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004372/3.598, allocations: 394.9 kB / 3.049 GB, free: 0.5136 GB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001838/3.599, allocations: 132.5 kB / 3.049 GB, free: 0.5135 GB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005714/3.599, allocations: 0.5155 MB / 3.05 GB, free: 0.5135 GB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.815e-06/3.599, allocations: 0 / 3.05 GB, free: 0.5135 GB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002254/3.601, allocations: 1.355 MB / 3.051 GB, free: 0.5131 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/3.601, allocations: 296.1 kB / 3.051 GB, free: 0.5128 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000877/3.602, allocations: 0.7894 MB / 3.052 GB, free: 0.5126 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.074e-05/3.602, allocations: 29.52 kB / 3.052 GB, free: 0.5126 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/3.603, allocations: 418.4 kB / 3.052 GB, free: 0.5124 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/3.603, allocations: 304.8 kB / 3.053 GB, free: 0.5123 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/3.603, allocations: 0 / 3.053 GB, free: 0.5123 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.485e-05/3.603, allocations: 343.1 kB / 3.053 GB, free: 0.512 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/3.603, allocations: 316.9 kB / 3.053 GB, free: 0.512 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/3.604, allocations: 0.508 MB / 3.054 GB, free: 0.5118 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/3.604, allocations: 428.2 kB / 3.054 GB, free: 0.5118 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/3.604, allocations: 3.688 kB / 3.054 GB, free: 0.5118 GB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001786/3.606, allocations: 1.055 MB / 3.055 GB, free: 0.5117 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000162/3.606, allocations: 1.138 MB / 3.056 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/3.606, allocations: 3.719 kB / 3.056 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006132/3.607, allocations: 109.8 kB / 3.057 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007946/3.608, allocations: 197.1 kB / 3.057 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004839/3.608, allocations: 0.6587 MB / 3.057 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006858/3.609, allocations: 86.16 kB / 3.057 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/3.609, allocations: 37.44 kB / 3.058 GB, free: 0.51 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.719e-06/3.609, allocations: 3.719 kB / 3.058 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00115/3.61, allocations: 0.8008 MB / 3.058 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/3.61, allocations: 3.719 kB / 3.058 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.144e-06/3.61, allocations: 9.688 kB / 3.058 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007566/3.611, allocations: 206 kB / 3.059 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/3.611, allocations: 9.312 kB / 3.059 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/3.612, allocations: 76.69 kB / 3.059 GB, free: 0.51 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.197e-05/3.612, allocations: 38.94 kB / 3.059 GB, free: 0.51 GB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (107): * Single equations (assignments): 106 * 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.0001647/3.612, allocations: 137.2 kB / 3.059 GB, free: 0.5099 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/3.612, allocations: 103.6 kB / 3.059 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/3.615, allocations: 1.328 MB / 3.06 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/3.615, allocations: 11.47 kB / 3.06 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/3.615, allocations: 0 / 3.06 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/3.615, allocations: 7.406 kB / 3.06 GB, free: 0.5097 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/3.618, allocations: 2.494 MB / 3.063 GB, free: 0.5093 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/3.618, allocations: 0 / 3.063 GB, free: 0.5093 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/3.619, allocations: 192.8 kB / 3.063 GB, free: 0.5093 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007399/3.619, allocations: 192.5 kB / 3.063 GB, free: 0.5093 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.34e-05/3.619, allocations: 18.66 kB / 3.063 GB, free: 0.5093 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/3.621, allocations: 1.681 MB / 3.065 GB, free: 0.5081 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/3.621, allocations: 10.62 kB / 3.065 GB, free: 0.5081 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001836/3.623, allocations: 1.392 MB / 3.066 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001903/3.625, allocations: 1.814 MB / 3.068 GB, free: 0.5068 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004017/3.625, allocations: 347.2 kB / 3.068 GB, free: 0.5067 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/3.625, allocations: 3.906 kB / 3.068 GB, free: 0.5067 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007732/3.626, allocations: 79.75 kB / 3.068 GB, free: 0.5067 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/3.626, allocations: 63.69 kB / 3.068 GB, free: 0.5067 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/3.626, allocations: 37.22 kB / 3.068 GB, free: 0.5067 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005844/3.627, allocations: 0.6201 MB / 3.069 GB, free: 0.5066 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.002406/3.629, allocations: 0.5254 MB / 3.069 GB, free: 0.5066 GB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (105): * Single equations (assignments): 102 * 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: 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.001054/3.63, allocations: 0.5499 MB / 3.07 GB, free: 0.5065 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001659/3.632, allocations: 1.339 MB / 3.071 GB, free: 0.5065 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/3.632, allocations: 0 / 3.071 GB, free: 0.5065 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007391/3.633, allocations: 0.6124 MB / 3.072 GB, free: 0.5064 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/3.634, allocations: 264.6 kB / 3.072 GB, free: 0.5064 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/3.637, allocations: 1.82 MB / 3.074 GB, free: 0.5059 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008854/3.638, allocations: 1.344 MB / 3.075 GB, free: 0.5052 GB / 1.151 GB Notification: Performance of SimCode: time 3.1e-07/3.638, allocations: 3.75 kB / 3.075 GB, free: 0.5052 GB / 1.151 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