Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.8601/0.8601, allocations: 141.8 MB / 149.1 MB, free: 4.375 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 189 kB / 181.9 MB, free: 56 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 221.3 MB / 436 MB, free: 9.223 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000996/0.0009961, allocations: 98.42 kB / 0.507 GB, free: 24.12 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001884/0.001884, allocations: 270.3 kB / 0.5884 GB, free: 12.25 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.121e-05/1.126e-05, allocations: 4 kB / 0.6759 GB, free: 2.609 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5103/0.5103, allocations: 82.76 MB / 0.7567 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.931/5.442, allocations: 2.118 GB / 2.875 GB, free: 229.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/5.442, allocations: 88.89 kB / 2.875 GB, free: 229.7 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.119/7.561, allocations: 0.6011 GB / 3.476 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0002213/7.562, allocations: 40.48 kB / 3.476 GB, free: 148.1 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.004736/7.567, allocations: 1.36 MB / 3.477 GB, free: 147.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/7.567, allocations: 12.12 kB / 3.477 GB, free: 147.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003972/7.571, allocations: 0.6364 MB / 3.478 GB, free: 147.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004438/7.575, allocations: 0.9648 MB / 3.479 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.377e-05/7.575, allocations: 21.47 kB / 3.479 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/7.575, allocations: 46.94 kB / 3.479 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00152/7.577, allocations: 0.5685 MB / 3.479 GB, free: 146.6 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/7.579, allocations: 0.821 MB / 3.48 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/7.579, allocations: 6.094 kB / 3.48 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.251e-05/7.579, allocations: 4.203 kB / 3.48 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.929e-05/7.579, allocations: 31.62 kB / 3.48 GB, free: 146.2 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008073/7.587, allocations: 4.858 MB / 3.485 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/7.588, allocations: 0.542 MB / 3.486 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005008/7.589, allocations: 287.8 kB / 3.486 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/7.59, allocations: 1.602 MB / 3.487 GB, free: 140.4 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007236/7.591, allocations: 377.5 kB / 3.488 GB, free: 140.2 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=61): time 4.678e-06/7.591, allocations: 0 / 3.488 GB, free: 140.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=61): time 0.002163/7.593, allocations: 0.7065 MB / 3.488 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/7.593, allocations: 63.08 kB / 3.489 GB, free: 139.9 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/7.595, allocations: 0.8432 MB / 3.489 GB, free: 139.5 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001057/7.595, allocations: 28.64 kB / 3.489 GB, free: 139.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.000343/7.595, allocations: 376.3 kB / 3.49 GB, free: 139.2 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.000211/7.595, allocations: 205.6 kB / 3.49 GB, free: 139 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/7.595, allocations: 0 / 3.49 GB, free: 139 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001077/7.595, allocations: 341.6 kB / 3.49 GB, free: 138.7 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/7.596, allocations: 251.9 kB / 3.491 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/7.597, allocations: 0.5678 MB / 3.491 GB, free: 138.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009951/7.598, allocations: 354 kB / 3.491 GB, free: 137.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/7.598, allocations: 3.938 kB / 3.491 GB, free: 137.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002023/7.6, allocations: 0.8862 MB / 3.492 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/7.6, allocations: 3.719 kB / 3.492 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/7.6, allocations: 7.156 kB / 3.492 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/7.6, allocations: 18.41 kB / 3.492 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/7.601, allocations: 284.6 kB / 3.493 GB, free: 137.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/7.601, allocations: 19.31 kB / 3.493 GB, free: 137.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/7.602, allocations: 192.8 kB / 3.493 GB, free: 137.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/7.602, allocations: 53.44 kB / 3.493 GB, free: 137.4 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001895/7.603, allocations: 138.5 kB / 3.493 GB, free: 137.2 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/7.603, allocations: 108.6 kB / 3.493 GB, free: 137.2 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/7.605, allocations: 1.078 MB / 3.494 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/7.605, allocations: 7.375 kB / 3.494 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/7.605, allocations: 3.984 kB / 3.494 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/7.605, allocations: 3.344 kB / 3.494 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003407/7.609, allocations: 1.991 MB / 3.496 GB, free: 135.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/7.609, allocations: 0 / 3.496 GB, free: 135.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/7.61, allocations: 216.9 kB / 3.496 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/7.61, allocations: 6.719 kB / 3.496 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.74e-05/7.61, allocations: 19.53 kB / 3.496 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/7.61, allocations: 7.625 kB / 3.496 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/7.61, allocations: 2.531 kB / 3.496 GB, free: 135.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002295/7.612, allocations: 1.53 MB / 3.498 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004808/7.613, allocations: 293.1 kB / 3.498 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/7.613, allocations: 11.95 kB / 3.498 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/7.614, allocations: 130.4 kB / 3.498 GB, free: 134.1 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/7.614, allocations: 55.55 kB / 3.498 GB, free: 134.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.8e-05/7.614, allocations: 30.47 kB / 3.498 GB, free: 134.1 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007654/7.615, allocations: 0.6365 MB / 3.499 GB, free: 133.7 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001406/7.616, allocations: 379.3 kB / 3.499 GB, free: 133.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/7.618, allocations: 0.7084 MB / 3.5 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001228/7.619, allocations: 0.741 MB / 3.501 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/7.619, allocations: 0 / 3.501 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005877/7.62, allocations: 409.8 kB / 3.501 GB, free: 133 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/7.621, allocations: 330 kB / 3.501 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/7.625, allocations: 1.824 MB / 3.503 GB, free: 132 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/7.627, allocations: 1.283 MB / 3.504 GB, free: 131 MB / 0.6982 GB Notification: Performance of SimCode: time 1.403e-06/7.627, allocations: 2.406 kB / 3.504 GB, free: 131 MB / 0.6982 GB Notification: Performance of Templates: time 0.03545/7.662, allocations: 19.59 MB / 3.524 GB, free: 115.3 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)