Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",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 2.096/2.096, allocations: 387.2 MB / 394.5 MB, free: 13.6 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.001293/0.001293, allocations: 177.3 kB / 487 MB, free: 5.328 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.572/1.572, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.001013/0.001013, allocations: 106.1 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6716/0.6727, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.9766, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/2.037, allocations: 417.7 MB / 1.613 GB, free: 4.695 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/2.038, allocations: 84.95 kB / 1.613 GB, free: 4.656 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 6.011/8.048, allocations: 1.514 GB / 3.127 GB, free: 188.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/8.048, allocations: 11.75 kB / 3.127 GB, free: 188.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006314/8.055, allocations: 0.9225 MB / 3.128 GB, free: 188.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01946/8.074, allocations: 7.012 MB / 3.135 GB, free: 187.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/8.074, allocations: 106.1 kB / 3.135 GB, free: 187.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/8.076, allocations: 206.4 kB / 3.135 GB, free: 187.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008291/8.084, allocations: 4.872 MB / 3.14 GB, free: 187.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00815/8.092, allocations: 4.867 MB / 3.144 GB, free: 186.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.969e-05/8.092, allocations: 17.5 kB / 3.144 GB, free: 186.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005227/8.093, allocations: 7.781 kB / 3.144 GB, free: 186.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/8.093, allocations: 117.4 kB / 3.145 GB, free: 186.9 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03619/8.129, allocations: 22.41 MB / 3.166 GB, free: 177.1 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/8.132, allocations: 2.355 MB / 3.169 GB, free: 177.1 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/8.134, allocations: 1.786 MB / 3.171 GB, free: 177 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/8.148, allocations: 6.962 MB / 3.177 GB, free: 174.8 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002195/8.15, allocations: 1.76 MB / 3.179 GB, free: 174.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=158): time 6.312e-06/8.15, allocations: 0 / 3.179 GB, free: 174.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=158): time 0.01931/8.17, allocations: 6.198 MB / 3.185 GB, free: 174.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/8.17, allocations: 71.88 kB / 3.185 GB, free: 174.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00716/8.177, allocations: 4.097 MB / 3.189 GB, free: 174 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0008242/8.178, allocations: 33.36 kB / 3.189 GB, free: 174 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001704/8.179, allocations: 1.606 MB / 3.191 GB, free: 173.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001369/8.181, allocations: 0.5446 MB / 3.191 GB, free: 172.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/8.181, allocations: 3.719 kB / 3.191 GB, free: 172.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001492/8.181, allocations: 409.5 kB / 3.192 GB, free: 172.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/8.183, allocations: 1.555 MB / 3.193 GB, free: 172.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002549/8.186, allocations: 2.801 MB / 3.196 GB, free: 170.9 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/8.189, allocations: 2.142 MB / 3.198 GB, free: 170.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/8.189, allocations: 10.09 kB / 3.198 GB, free: 170.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06571/8.255, allocations: 11.79 MB / 3.21 GB, free: 170.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.003169/8.258, allocations: 14.99 MB / 3.224 GB, free: 154.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/8.258, allocations: 32.48 kB / 3.224 GB, free: 154.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06963/8.328, allocations: 10.75 MB / 3.235 GB, free: 154.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003285/8.331, allocations: 0.6543 MB / 3.235 GB, free: 154.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/8.342, allocations: 5.859 MB / 3.241 GB, free: 153.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006739/8.349, allocations: 451 kB / 3.241 GB, free: 153.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008437/8.35, allocations: 201.5 kB / 3.242 GB, free: 153.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/8.35, allocations: 3.875 kB / 3.242 GB, free: 153.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06339/8.414, allocations: 11.06 MB / 3.252 GB, free: 152.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/8.414, allocations: 34.03 kB / 3.253 GB, free: 152.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07024/8.484, allocations: 10.69 MB / 3.263 GB, free: 152.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/8.488, allocations: 0.6423 MB / 3.264 GB, free: 152.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01574/8.504, allocations: 8.335 MB / 3.272 GB, free: 149.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00679/8.511, allocations: 379.4 kB / 3.272 GB, free: 149.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/8.512, allocations: 191 kB / 3.272 GB, free: 149.7 MB / 1.167 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 277 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001161/8.513, allocations: 196.8 kB / 3.272 GB, free: 149.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001915/8.515, allocations: 437.3 kB / 3.273 GB, free: 149.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/8.529, allocations: 4.84 MB / 3.278 GB, free: 149.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.759e-05/8.529, allocations: 18.06 kB / 3.278 GB, free: 149.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/8.529, allocations: 3.906 kB / 3.278 GB, free: 149.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01025/8.539, allocations: 5.13 MB / 3.283 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03362/8.573, allocations: 10.03 MB / 3.292 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-05/8.573, allocations: 1 kB / 3.292 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/8.576, allocations: 393.8 kB / 3.293 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007051/8.583, allocations: 1.864 MB / 3.295 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007616/8.584, allocations: 32.83 kB / 3.295 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009064/8.593, allocations: 3.533 MB / 3.298 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/8.593, allocations: 3.734 kB / 3.298 GB, free: 145.3 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03023/8.623, allocations: 7.961 MB / 3.306 GB, free: 143.1 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03251/8.656, allocations: 10.76 MB / 3.316 GB, free: 138.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004743/8.661, allocations: 1.024 MB / 3.317 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002504/8.663, allocations: 11.38 kB / 3.317 GB, free: 137.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005782/8.669, allocations: 234.2 kB / 3.318 GB, free: 137.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006071/8.67, allocations: 110.8 kB / 3.318 GB, free: 137.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005794/8.67, allocations: 89.28 kB / 3.318 GB, free: 137.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.007623/8.678, allocations: 3.095 MB / 3.321 GB, free: 134.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01722/8.695, allocations: 2.983 MB / 3.324 GB, free: 131.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003262/8.698, allocations: 1.163 MB / 3.325 GB, free: 130.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.02059/8.719, allocations: 7.025 MB / 3.332 GB, free: 124.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/8.719, allocations: 0 / 3.332 GB, free: 124.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005921/8.725, allocations: 2.131 MB / 3.334 GB, free: 122.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01479/8.74, allocations: 2.293 MB / 3.336 GB, free: 120.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/8.765, allocations: 7.838 MB / 3.344 GB, free: 113.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006794/8.772, allocations: 3.744 MB / 3.347 GB, free: 110.1 MB / 1.167 GB Notification: Performance of SimCode: time 1.572e-06/8.772, allocations: 0 / 3.347 GB, free: 110.1 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)