Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [: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.0009767/0.0009768, allocations: 186.8 kB / 7.803 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4429/0.4429, allocations: 90.85 MB / 99.07 MB, free: 14.95 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.222/1.222, allocations: 221.4 MB / 342.8 MB, free: 5.258 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.001085/0.001085, allocations: 92.28 kB / 415.5 MB, free: 6.438 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.474e-06, allocations: 0 / 493.9 MB, free: 8.078 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4034, allocations: 72.3 MB / 0.5529 GB, free: 73.33 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.636/1.039, allocations: 348.8 MB / 0.8935 GB, free: 6.523 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/1.04, allocations: 102.6 kB / 0.8936 GB, free: 6.469 MB / 0.5573 GB Notification: Performance of FrontEnd: time 0.6424/1.682, allocations: 177.8 MB / 1.067 GB, free: 132.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.465e-05/1.682, allocations: 15.98 kB / 1.067 GB, free: 132.2 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001398/1.684, allocations: 0.7395 MB / 1.068 GB, free: 131.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.684, allocations: 12.03 kB / 1.068 GB, free: 131.4 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/1.684, allocations: 55.34 kB / 1.068 GB, free: 131.4 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000829/1.685, allocations: 425.4 kB / 1.068 GB, free: 130.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/1.685, allocations: 8 kB / 1.068 GB, free: 130.9 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/1.685, allocations: 16 kB / 1.068 GB, free: 130.9 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002777/1.685, allocations: 128.8 kB / 1.069 GB, free: 130.8 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/1.685, allocations: 170.4 kB / 1.069 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.685, allocations: 11.89 kB / 1.069 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/1.685, allocations: 0 / 1.069 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/1.686, allocations: 4 kB / 1.069 GB, free: 130.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/1.687, allocations: 0.8682 MB / 1.07 GB, free: 129.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/1.687, allocations: 110.6 kB / 1.07 GB, free: 129.6 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.623e-05/1.687, allocations: 56.84 kB / 1.07 GB, free: 129.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002273/1.687, allocations: 340.3 kB / 1.07 GB, free: 129.1 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/1.687, allocations: 34.56 kB / 1.07 GB, free: 129 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 2.194e-06/1.687, allocations: 0 / 1.07 GB, free: 129 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0004432/1.688, allocations: 166.8 kB / 1.07 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/1.688, allocations: 59.39 kB / 1.07 GB, free: 128.8 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/1.688, allocations: 361.1 kB / 1.071 GB, free: 128.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/1.688, allocations: 25.7 kB / 1.071 GB, free: 128.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/1.688, allocations: 172.6 kB / 1.071 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/1.688, allocations: 47.3 kB / 1.071 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/1.688, allocations: 4 kB / 1.071 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.048e-05/1.688, allocations: 346.8 kB / 1.071 GB, free: 127.8 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.4e-05/1.689, allocations: 48 kB / 1.071 GB, free: 127.8 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/1.689, allocations: 156.5 kB / 1.071 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/1.689, allocations: 75.89 kB / 1.072 GB, free: 127.5 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/1.689, allocations: 0 / 1.072 GB, free: 127.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003797/1.689, allocations: 219.8 kB / 1.072 GB, free: 127.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.462e-05/1.689, allocations: 270.9 kB / 1.072 GB, free: 127 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/1.689, allocations: 0 / 1.072 GB, free: 127 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/1.689, allocations: 4 kB / 1.072 GB, free: 127 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/1.69, allocations: 51.91 kB / 1.072 GB, free: 127 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/1.69, allocations: 7.922 kB / 1.072 GB, free: 127 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/1.69, allocations: 47.72 kB / 1.072 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/1.69, allocations: 8 kB / 1.072 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/1.69, allocations: 4 kB / 1.072 GB, free: 126.9 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002893/1.69, allocations: 139.9 kB / 1.072 GB, free: 126.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/1.69, allocations: 0 / 1.072 GB, free: 126.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.739e-06/1.69, allocations: 8 kB / 1.072 GB, free: 126.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/1.691, allocations: 51.91 kB / 1.072 GB, free: 126.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/1.691, allocations: 7.906 kB / 1.072 GB, free: 126.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/1.691, allocations: 43.8 kB / 1.072 GB, free: 126.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/1.691, allocations: 8 kB / 1.072 GB, free: 126.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 7.42e-05/1.691, allocations: 104.9 kB / 1.072 GB, free: 126.5 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.946e-05/1.691, allocations: 39.53 kB / 1.073 GB, free: 126.5 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/1.692, allocations: 231.9 kB / 1.073 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/1.692, allocations: 0 / 1.073 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/1.692, allocations: 3.984 kB / 1.073 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/1.692, allocations: 0 / 1.073 GB, free: 126.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007367/1.692, allocations: 0.6309 MB / 1.073 GB, free: 125.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/1.692, allocations: 4 kB / 1.073 GB, free: 125.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/1.693, allocations: 35.97 kB / 1.073 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/1.693, allocations: 4 kB / 1.073 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/1.693, allocations: 0 / 1.073 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/1.693, allocations: 11.88 kB / 1.073 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.693, allocations: 0 / 1.073 GB, free: 125.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003245/1.693, allocations: 357.2 kB / 1.074 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/1.693, allocations: 144.5 kB / 1.074 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/1.693, allocations: 0 / 1.074 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/1.693, allocations: 27.91 kB / 1.074 GB, free: 124.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/1.694, allocations: 27.83 kB / 1.074 GB, free: 124.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/1.694, allocations: 4 kB / 1.074 GB, free: 124.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0002329/1.694, allocations: 283.1 kB / 1.074 GB, free: 124.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0007522/1.695, allocations: 227.6 kB / 1.074 GB, free: 124.4 MB / 0.6042 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 (16): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001032/1.696, allocations: 490.2 kB / 1.075 GB, free: 124 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003943/1.696, allocations: 240.9 kB / 1.075 GB, free: 123.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.696, allocations: 0 / 1.075 GB, free: 123.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/1.696, allocations: 71.84 kB / 1.075 GB, free: 123.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009858/1.697, allocations: 184.7 kB / 1.075 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/1.698, allocations: 0.4928 MB / 1.076 GB, free: 123 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/1.699, allocations: 0.8737 MB / 1.077 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/1.699, allocations: 0 / 1.077 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of Templates: time 0.01471/1.713, allocations: 9.195 MB / 1.086 GB, free: 113 MB / 0.6042 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)