Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") [: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/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 191.1 kB / 7.804 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4571/0.4571, allocations: 90.85 MB / 99.08 MB, free: 14.91 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.4 MB / 342.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000953/0.000953, allocations: 92.03 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 7.534e-06/7.574e-06, allocations: 0 / 493.9 MB, free: 8.086 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3656, allocations: 72.3 MB / 0.5529 GB, free: 73.38 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5882/0.9539, allocations: 346.4 MB / 0.8912 GB, free: 11.64 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003591/0.9543, allocations: 89 kB / 0.8913 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of FrontEnd: time 0.7521/1.706, allocations: 240 MB / 1.126 GB, free: 75.52 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.098e-05/1.707, allocations: 20 kB / 1.126 GB, free: 75.5 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001911/1.708, allocations: 0.9811 MB / 1.127 GB, free: 74.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/1.709, allocations: 8.031 kB / 1.127 GB, free: 74.47 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/1.709, allocations: 82.97 kB / 1.127 GB, free: 74.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008772/1.71, allocations: 0.5035 MB / 1.127 GB, free: 73.84 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/1.71, allocations: 16 kB / 1.127 GB, free: 73.83 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/1.71, allocations: 31.91 kB / 1.127 GB, free: 73.8 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005629/1.71, allocations: 353.9 kB / 1.128 GB, free: 73.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/1.711, allocations: 0.5139 MB / 1.128 GB, free: 72.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/1.711, allocations: 3.938 kB / 1.128 GB, free: 72.87 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/1.711, allocations: 4 kB / 1.128 GB, free: 72.87 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/1.711, allocations: 12 kB / 1.128 GB, free: 72.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/1.714, allocations: 3.102 MB / 1.131 GB, free: 69.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/1.714, allocations: 270.8 kB / 1.131 GB, free: 69.31 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/1.714, allocations: 179.2 kB / 1.132 GB, free: 69.14 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002378/1.714, allocations: 352.4 kB / 1.132 GB, free: 68.72 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/1.714, allocations: 42.56 kB / 1.132 GB, free: 68.67 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/1.714, allocations: 0 / 1.132 GB, free: 68.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=38): time 0.002058/1.716, allocations: 0.716 MB / 1.133 GB, free: 67.94 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.753e-05/1.717, allocations: 51.41 kB / 1.133 GB, free: 67.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/1.717, allocations: 451.4 kB / 1.133 GB, free: 67.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/1.717, allocations: 25.7 kB / 1.133 GB, free: 67.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/1.717, allocations: 256.2 kB / 1.133 GB, free: 67.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/1.717, allocations: 126.1 kB / 1.133 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.448e-05/1.717, allocations: 0 / 1.133 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.176e-05/1.717, allocations: 370.7 kB / 1.134 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/1.717, allocations: 149.3 kB / 1.134 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/1.718, allocations: 323.1 kB / 1.134 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/1.719, allocations: 476.1 kB / 1.135 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.719, allocations: 0 / 1.135 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001989/1.721, allocations: 0.8344 MB / 1.136 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000278/1.721, allocations: 1.744 MB / 1.137 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/1.721, allocations: 8 kB / 1.137 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/1.722, allocations: 108.7 kB / 1.137 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005428/1.722, allocations: 139.8 kB / 1.137 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008886/1.723, allocations: 0.7278 MB / 1.138 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007048/1.724, allocations: 99.38 kB / 1.138 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/1.724, allocations: 32.05 kB / 1.138 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/1.724, allocations: 6.812 kB / 1.138 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001755/1.726, allocations: 0.7116 MB / 1.139 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/1.726, allocations: 4 kB / 1.139 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.986e-06/1.726, allocations: 8 kB / 1.139 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/1.727, allocations: 160.3 kB / 1.139 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/1.727, allocations: 11.94 kB / 1.139 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005969/1.727, allocations: 87.53 kB / 1.139 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.28e-05/1.727, allocations: 27.98 kB / 1.139 GB, free: 60.77 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001623/1.727, allocations: 124.8 kB / 1.139 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/1.728, allocations: 59.25 kB / 1.139 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/1.73, allocations: 0.8139 MB / 1.14 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/1.73, allocations: 8 kB / 1.14 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/1.73, allocations: 3.906 kB / 1.14 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/1.73, allocations: 0 / 1.14 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002985/1.733, allocations: 1.489 MB / 1.142 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.733, allocations: 4 kB / 1.142 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/1.733, allocations: 95.97 kB / 1.142 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003232/1.733, allocations: 116.8 kB / 1.142 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/1.733, allocations: 11.98 kB / 1.142 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008016/1.734, allocations: 0.7161 MB / 1.143 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.734, allocations: 0 / 1.143 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001916/1.736, allocations: 0.9089 MB / 1.144 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/1.737, allocations: 196.1 kB / 1.144 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/1.737, allocations: 3.938 kB / 1.144 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005297/1.737, allocations: 63.88 kB / 1.144 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.552e-05/1.737, allocations: 27.95 kB / 1.144 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/1.737, allocations: 16.06 kB / 1.144 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0003675/1.738, allocations: 343.1 kB / 1.144 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001355/1.739, allocations: 391.3 kB / 1.145 GB, free: 55.23 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.0008439/1.74, allocations: 411.1 kB / 1.145 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001404/1.741, allocations: 0.7278 MB / 1.146 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/1.741, allocations: 4.375 kB / 1.146 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004415/1.742, allocations: 240.2 kB / 1.146 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/1.743, allocations: 219.6 kB / 1.146 GB, free: 53.64 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/1.745, allocations: 0.7591 MB / 1.147 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/1.745, allocations: 1.002 MB / 1.148 GB, free: 51.82 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/1.745, allocations: 0 / 1.148 GB, free: 51.82 MB / 0.6042 GB Notification: Performance of Templates: time 0.02222/1.767, allocations: 14.17 MB / 1.162 GB, free: 37.79 MB / 0.6042 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1)