Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") [: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.7374/0.7374, allocations: 141.8 MB / 149.1 MB, free: 15.39 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.001223/0.001223, allocations: 180.1 kB / 181.9 MB, free: 11.77 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.452/1.452, allocations: 221.3 MB / 436 MB, free: 4.359 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.001037/0.001037, allocations: 92.53 kB / 0.507 GB, free: 18.98 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001894/0.001895, allocations: 271.5 kB / 0.5885 GB, free: 5.691 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.937e-06/8.967e-06, allocations: 1.062 kB / 0.6759 GB, free: 139 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.1739, allocations: 82.78 MB / 0.7567 GB, free: 86.71 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6514/0.8254, allocations: 360.4 MB / 1.109 GB, free: 7.809 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.8257, allocations: 89.95 kB / 1.109 GB, free: 7.766 MB / 0.6825 GB Notification: Performance of FrontEnd: time 0.63/1.456, allocations: 178.2 MB / 1.283 GB, free: 139.4 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 6.465e-05/1.456, allocations: 12 kB / 1.283 GB, free: 139.4 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001283/1.457, allocations: 0.7746 MB / 1.284 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/1.457, allocations: 16.03 kB / 1.284 GB, free: 138.6 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/1.457, allocations: 67.23 kB / 1.284 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000829/1.458, allocations: 457.2 kB / 1.284 GB, free: 138.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/1.458, allocations: 8 kB / 1.284 GB, free: 138 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.828e-05/1.458, allocations: 16 kB / 1.284 GB, free: 138 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002745/1.459, allocations: 145 kB / 1.284 GB, free: 137.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/1.459, allocations: 232.3 kB / 1.285 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/1.459, allocations: 0 / 1.285 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/1.459, allocations: 0 / 1.285 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/1.459, allocations: 8 kB / 1.285 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/1.461, allocations: 1.445 MB / 1.286 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/1.461, allocations: 138.8 kB / 1.286 GB, free: 135.9 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.505e-05/1.461, allocations: 64.84 kB / 1.286 GB, free: 135.9 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001229/1.462, allocations: 1.359 MB / 1.287 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/1.462, allocations: 34.56 kB / 1.287 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/1.462, allocations: 3.938 kB / 1.287 GB, free: 134.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=15): time 0.00049/1.463, allocations: 180.9 kB / 1.288 GB, free: 134.1 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.788e-05/1.463, allocations: 51.41 kB / 1.288 GB, free: 134 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004595/1.463, allocations: 477.2 kB / 1.288 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/1.463, allocations: 29.7 kB / 1.288 GB, free: 133.5 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 9.279e-05/1.463, allocations: 211.8 kB / 1.288 GB, free: 133.3 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/1.463, allocations: 47.36 kB / 1.288 GB, free: 133.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/1.463, allocations: 0 / 1.288 GB, free: 133.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.606e-05/1.463, allocations: 358.7 kB / 1.289 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.085e-05/1.464, allocations: 56.55 kB / 1.289 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/1.464, allocations: 209.1 kB / 1.289 GB, free: 132.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/1.464, allocations: 102.3 kB / 1.289 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.464, allocations: 0 / 1.289 GB, free: 132.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004778/1.465, allocations: 264.8 kB / 1.289 GB, free: 132.2 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001709/1.465, allocations: 0.9601 MB / 1.29 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.465, allocations: 11.91 kB / 1.29 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.465, allocations: 4 kB / 1.29 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/1.465, allocations: 67.91 kB / 1.29 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/1.465, allocations: 7.938 kB / 1.29 GB, free: 131.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/1.465, allocations: 47.66 kB / 1.29 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.436e-05/1.465, allocations: 19.98 kB / 1.29 GB, free: 131 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/1.465, allocations: 4 kB / 1.29 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000383/1.466, allocations: 190.1 kB / 1.291 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/1.466, allocations: 4 kB / 1.291 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.93e-06/1.466, allocations: 4.25 kB / 1.291 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/1.466, allocations: 67.91 kB / 1.291 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/1.466, allocations: 4 kB / 1.291 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/1.466, allocations: 39.81 kB / 1.291 GB, free: 130.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/1.466, allocations: 12 kB / 1.291 GB, free: 130.7 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.927e-05/1.467, allocations: 124.7 kB / 1.291 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/1.467, allocations: 47.61 kB / 1.291 GB, free: 130.5 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/1.467, allocations: 245.1 kB / 1.291 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/1.467, allocations: 4 kB / 1.291 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.467, allocations: 0 / 1.291 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.467, allocations: 3.984 kB / 1.291 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008603/1.468, allocations: 0.6815 MB / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.468, allocations: 0 / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/1.468, allocations: 36.11 kB / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/1.468, allocations: 0 / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/1.468, allocations: 8 kB / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/1.468, allocations: 7.938 kB / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.468, allocations: 0 / 1.292 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003791/1.469, allocations: 375.5 kB / 1.292 GB, free: 129.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/1.469, allocations: 148.5 kB / 1.292 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.441e-05/1.469, allocations: 8 kB / 1.292 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/1.469, allocations: 19.98 kB / 1.292 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/1.469, allocations: 11.89 kB / 1.292 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/1.469, allocations: 15.98 kB / 1.292 GB, free: 128.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0003116/1.469, allocations: 366.8 kB / 1.293 GB, free: 128.5 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0008308/1.47, allocations: 263.5 kB / 1.293 GB, free: 128.2 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 (17): * Single equations (assignments): 15 * 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.001068/1.471, allocations: 0.5183 MB / 1.294 GB, free: 127.8 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0004445/1.472, allocations: 285.2 kB / 1.294 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.472, allocations: 0 / 1.294 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 9.873e-05/1.472, allocations: 76.92 kB / 1.294 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/1.473, allocations: 221.8 kB / 1.294 GB, free: 127.2 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/1.474, allocations: 0.5713 MB / 1.295 GB, free: 126.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/1.475, allocations: 0.9055 MB / 1.296 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of SimCode: time 2.6e-07/1.475, allocations: 4 kB / 1.296 GB, free: 125.7 MB / 0.6982 GB Notification: Performance of Templates: time 0.01738/1.492, allocations: 10.87 MB / 1.306 GB, free: 114.9 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)