Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.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.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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.7151/0.7151, allocations: 141.8 MB / 149.1 MB, free: 13.1 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 175.2 kB / 181.9 MB, free: 9.805 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.4 MB / 436 MB, free: 2.207 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.0009767/0.0009767, allocations: 108 kB / 0.507 GB, free: 11 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00178/0.001781, allocations: 279.9 kB / 0.5884 GB, free: 7.824 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.965e-06, allocations: 1.562 kB / 0.6759 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2078, allocations: 82.78 MB / 0.7567 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.746/0.9538, allocations: 358 MB / 1.106 GB, free: 8.156 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.9541, allocations: 99.06 kB / 1.106 GB, free: 8.105 MB / 0.6669 GB Notification: Performance of FrontEnd: time 1.632/2.586, allocations: 435.7 MB / 1.532 GB, free: 158.5 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.000166/2.586, allocations: 32.34 kB / 1.532 GB, free: 158.5 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003583/2.59, allocations: 1.317 MB / 1.533 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/2.59, allocations: 11.38 kB / 1.533 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008434/2.591, allocations: 146.3 kB / 1.533 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002643/2.593, allocations: 0.8593 MB / 1.534 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/2.593, allocations: 18.75 kB / 1.534 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004542/2.594, allocations: 79.25 kB / 1.534 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008907/2.595, allocations: 404.7 kB / 1.535 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000855/2.596, allocations: 0.5233 MB / 1.535 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/2.596, allocations: 0 / 1.535 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.335e-05/2.596, allocations: 0 / 1.535 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/2.596, allocations: 18.03 kB / 1.535 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/2.601, allocations: 2.937 MB / 1.538 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004638/2.601, allocations: 310.8 kB / 1.538 GB, free: 154.3 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/2.601, allocations: 141.6 kB / 1.539 GB, free: 154.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002826/2.602, allocations: 346.4 kB / 1.539 GB, free: 153.9 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/2.602, allocations: 32.16 kB / 1.539 GB, free: 153.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=33): time 1.883e-06/2.602, allocations: 3.875 kB / 1.539 GB, free: 153.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33): time 0.001424/2.603, allocations: 0.4886 MB / 1.539 GB, free: 153.6 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/2.603, allocations: 57.91 kB / 1.539 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006777/2.604, allocations: 0.6449 MB / 1.54 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001295/2.604, allocations: 35.73 kB / 1.54 GB, free: 153.1 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/2.604, allocations: 402.4 kB / 1.541 GB, free: 152.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/2.604, allocations: 104.2 kB / 1.541 GB, free: 152.7 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/2.604, allocations: 0 / 1.541 GB, free: 152.7 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.41e-05/2.604, allocations: 330.4 kB / 1.541 GB, free: 152.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/2.605, allocations: 156.8 kB / 1.541 GB, free: 152.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/2.606, allocations: 1.414 MB / 1.542 GB, free: 150.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009135/2.607, allocations: 397.8 kB / 1.543 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/2.607, allocations: 0 / 1.543 GB, free: 150.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001619/2.608, allocations: 0.6612 MB / 1.543 GB, free: 150.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001934/2.609, allocations: 0.8105 MB / 1.544 GB, free: 149.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/2.609, allocations: 3.562 kB / 1.544 GB, free: 149.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/2.609, allocations: 3.875 kB / 1.544 GB, free: 149.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/2.61, allocations: 209.8 kB / 1.544 GB, free: 149.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/2.611, allocations: 3.008 MB / 1.547 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/2.615, allocations: 0.7661 MB / 1.548 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/2.615, allocations: 27.61 kB / 1.548 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/2.615, allocations: 4.156 kB / 1.548 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/2.617, allocations: 0.4943 MB / 1.549 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/2.617, allocations: 2.375 kB / 1.549 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/2.617, allocations: 4.938 kB / 1.549 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007701/2.617, allocations: 161.2 kB / 1.549 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/2.618, allocations: 5.719 kB / 1.549 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/2.621, allocations: 0.7553 MB / 1.55 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.814e-05/2.621, allocations: 29.42 kB / 1.55 GB, free: 145.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003958/2.622, allocations: 131.2 kB / 1.55 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/2.622, allocations: 89.59 kB / 1.55 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/2.624, allocations: 0.5697 MB / 1.55 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/2.624, allocations: 3.719 kB / 1.55 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/2.624, allocations: 4.688 kB / 1.55 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/2.624, allocations: 3.984 kB / 1.55 GB, free: 145.4 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00281/2.626, allocations: 1.236 MB / 1.552 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/2.626, allocations: 0.9062 kB / 1.552 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006188/2.627, allocations: 121.4 kB / 1.552 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/2.627, allocations: 2.656 kB / 1.552 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/2.627, allocations: 10.7 kB / 1.552 GB, free: 144.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009793/2.628, allocations: 2.965 MB / 1.555 GB, free: 141.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/2.628, allocations: 2.344 kB / 1.555 GB, free: 141.5 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00132/2.629, allocations: 0.6675 MB / 1.555 GB, free: 141 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/2.63, allocations: 219.7 kB / 1.555 GB, free: 140.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/2.63, allocations: 0 / 1.555 GB, free: 140.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006394/2.631, allocations: 65.61 kB / 1.556 GB, free: 140.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.259e-05/2.631, allocations: 27.34 kB / 1.556 GB, free: 140.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/2.631, allocations: 15.98 kB / 1.556 GB, free: 140.6 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005422/2.631, allocations: 484.6 kB / 1.556 GB, free: 140.1 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002254/2.634, allocations: 0.5928 MB / 1.557 GB, free: 139.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/2.635, allocations: 0.5099 MB / 1.557 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002579/2.637, allocations: 0.7817 MB / 1.558 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/2.637, allocations: 0 / 1.558 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005102/2.638, allocations: 217 kB / 1.558 GB, free: 138.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/2.64, allocations: 388.9 kB / 1.558 GB, free: 137.8 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/2.642, allocations: 1.068 MB / 1.56 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/2.643, allocations: 1.129 MB / 1.561 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of SimCode: time 4.91e-07/2.643, allocations: 0 / 1.561 GB, free: 135.6 MB / 0.6982 GB Notification: Performance of Templates: time 0.03925/2.682, allocations: 26.63 MB / 1.587 GB, free: 109.9 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)