Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_ConservationEquation",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/BuildSysPro 3.5.0/package.mo): time 0.7692/0.7692, allocations: 127.4 MB / 134.6 MB, free: 4.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00135/0.00135, allocations: 193.2 kB / 164.4 MB, free: 6.891 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.1 MB / 399.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000966/0.0009656, allocations: 85.53 kB / 476.3 MB, free: 8.848 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.333/0.334, allocations: 82.89 MB / 0.5461 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.519, allocations: 76.74 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.177/1.696, allocations: 348.7 MB / 0.9616 GB, free: 132.7 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/1.697, allocations: 85.2 kB / 0.9616 GB, free: 132.7 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.9453/2.642, allocations: 248.6 MB / 1.204 GB, free: 117.2 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/2.642, allocations: 14.88 kB / 1.204 GB, free: 117.2 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001125/2.643, allocations: 193.5 kB / 1.205 GB, free: 117.1 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02645/2.67, allocations: 11.41 MB / 1.216 GB, free: 110.4 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003723/2.67, allocations: 89.66 kB / 1.216 GB, free: 110.3 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/2.67, allocations: 23.56 kB / 1.216 GB, free: 110.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006766/2.671, allocations: 289.4 kB / 1.216 GB, free: 110.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/2.672, allocations: 405.8 kB / 1.217 GB, free: 110 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/2.672, allocations: 3.469 kB / 1.217 GB, free: 110 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/2.672, allocations: 0 / 1.217 GB, free: 110 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/2.672, allocations: 7.812 kB / 1.217 GB, free: 110 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003468/2.675, allocations: 2.394 MB / 1.219 GB, free: 107.8 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/2.676, allocations: 271.6 kB / 1.219 GB, free: 107.7 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/2.676, allocations: 155.2 kB / 1.219 GB, free: 107.6 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001539/2.676, allocations: 177.9 kB / 1.219 GB, free: 107.4 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/2.676, allocations: 218.7 kB / 1.22 GB, free: 107.3 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=29): time 2.846e-06/2.676, allocations: 0 / 1.22 GB, free: 107.3 MB / 0.6355 GB Notification: Performance of matching and sorting (n=29): time 0.004261/2.681, allocations: 0.8022 MB / 1.22 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/2.681, allocations: 81.02 kB / 1.22 GB, free: 106.8 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004893/2.681, allocations: 377.9 kB / 1.221 GB, free: 106.6 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.028e-05/2.681, allocations: 32.73 kB / 1.221 GB, free: 106.6 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/2.681, allocations: 219.4 kB / 1.221 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 9.828e-05/2.682, allocations: 90.44 kB / 1.221 GB, free: 106.3 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/2.682, allocations: 0 / 1.221 GB, free: 106.3 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001138/2.682, allocations: 358.6 kB / 1.222 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/2.682, allocations: 134.1 kB / 1.222 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/2.682, allocations: 233.2 kB / 1.222 GB, free: 105.7 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/2.683, allocations: 166.7 kB / 1.222 GB, free: 105.6 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.683, allocations: 0 / 1.222 GB, free: 105.6 MB / 0.6355 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003655/2.686, allocations: 0.7905 MB / 1.223 GB, free: 105.3 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.000264/2.687, allocations: 0.7094 MB / 1.224 GB, free: 104.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/2.687, allocations: 0 / 1.224 GB, free: 104.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/2.687, allocations: 83.56 kB / 1.224 GB, free: 104.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/2.687, allocations: 90.22 kB / 1.224 GB, free: 104.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/2.689, allocations: 0.7407 MB / 1.224 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009141/2.69, allocations: 94.64 kB / 1.224 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.271e-05/2.69, allocations: 19.59 kB / 1.225 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/2.69, allocations: 3.938 kB / 1.225 GB, free: 103.8 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008954/2.691, allocations: 367.3 kB / 1.225 GB, free: 103.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/2.691, allocations: 0 / 1.225 GB, free: 103.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/2.691, allocations: 51.92 kB / 1.225 GB, free: 103.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/2.691, allocations: 86.38 kB / 1.225 GB, free: 103.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/2.692, allocations: 1.496 MB / 1.226 GB, free: 102.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/2.693, allocations: 74.02 kB / 1.227 GB, free: 102.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/2.693, allocations: 23.83 kB / 1.227 GB, free: 102.1 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002157/2.693, allocations: 145 kB / 1.227 GB, free: 102 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/2.694, allocations: 58.69 kB / 1.227 GB, free: 101.9 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/2.697, allocations: 0.7148 MB / 1.227 GB, free: 101.6 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/2.697, allocations: 0 / 1.227 GB, free: 101.6 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/2.697, allocations: 11.8 kB / 1.227 GB, free: 101.6 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003133/2.7, allocations: 0.8965 MB / 1.228 GB, free: 100.9 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00419/2.704, allocations: 1.28 MB / 1.23 GB, free: 100.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/2.704, allocations: 3.906 kB / 1.23 GB, free: 100.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/2.705, allocations: 62.92 kB / 1.23 GB, free: 100.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/2.705, allocations: 67.84 kB / 1.23 GB, free: 100.1 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.091e-05/2.705, allocations: 7.859 kB / 1.23 GB, free: 100.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005966/2.711, allocations: 2.092 MB / 1.232 GB, free: 98.36 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/2.711, allocations: 4.531 kB / 1.232 GB, free: 98.36 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00425/2.715, allocations: 0.9772 MB / 1.233 GB, free: 97.84 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005117/2.72, allocations: 1.589 MB / 1.234 GB, free: 96.82 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005974/2.721, allocations: 180.1 kB / 1.234 GB, free: 96.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/2.721, allocations: 7.453 kB / 1.234 GB, free: 96.65 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009278/2.722, allocations: 79.97 kB / 1.235 GB, free: 96.62 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/2.722, allocations: 18.78 kB / 1.235 GB, free: 96.61 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.654e-05/2.722, allocations: 23.52 kB / 1.235 GB, free: 96.6 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0006559/2.723, allocations: 296.5 kB / 1.235 GB, free: 96.42 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004231/2.727, allocations: 459.4 kB / 1.235 GB, free: 96.26 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001937/2.729, allocations: 419.9 kB / 1.236 GB, free: 96.04 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002665/2.732, allocations: 0.7631 MB / 1.236 GB, free: 95.63 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/2.732, allocations: 9.719 kB / 1.236 GB, free: 95.62 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/2.733, allocations: 392.5 kB / 1.237 GB, free: 95.38 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/2.735, allocations: 208.1 kB / 1.237 GB, free: 95.28 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/2.738, allocations: 0.771 MB / 1.238 GB, free: 94.86 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007962/2.739, allocations: 0.9409 MB / 1.239 GB, free: 94.05 MB / 0.6355 GB Notification: Performance of SimCode: time 2.174e-06/2.739, allocations: 0 / 1.239 GB, free: 94.05 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_ConservationEquation.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)