Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 189.2 kB / 7.803 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4936/0.4936, allocations: 90.85 MB / 99.07 MB, free: 14.94 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.299/1.299, allocations: 221.4 MB / 342.8 MB, free: 5.27 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.001056/0.001056, allocations: 101.3 kB / 415.5 MB, free: 6.445 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 1.108e-05/1.111e-05, allocations: 4 kB / 493.9 MB, free: 8.082 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4335, allocations: 72.3 MB / 0.5529 GB, free: 73.21 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5885/1.022, allocations: 350.9 MB / 0.8956 GB, free: 7.105 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.022, allocations: 96.12 kB / 0.8957 GB, free: 7.055 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.434/2.456, allocations: 435.7 MB / 1.321 GB, free: 114.1 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001601/2.456, allocations: 35.72 kB / 1.321 GB, free: 114.1 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00349/2.46, allocations: 1.312 MB / 1.322 GB, free: 112.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/2.46, allocations: 15.3 kB / 1.322 GB, free: 112.7 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007323/2.461, allocations: 150.5 kB / 1.323 GB, free: 112.6 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/2.463, allocations: 0.853 MB / 1.323 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/2.463, allocations: 19.94 kB / 1.323 GB, free: 111.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003775/2.463, allocations: 80 kB / 1.324 GB, free: 111.6 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007583/2.464, allocations: 402.4 kB / 1.324 GB, free: 111.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008105/2.465, allocations: 0.5235 MB / 1.324 GB, free: 110.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/2.465, allocations: 0 / 1.324 GB, free: 110.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/2.465, allocations: 7.188 kB / 1.324 GB, free: 110.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/2.465, allocations: 12 kB / 1.324 GB, free: 110.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/2.469, allocations: 2.937 MB / 1.327 GB, free: 107.6 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/2.47, allocations: 304.9 kB / 1.328 GB, free: 107.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/2.47, allocations: 140.8 kB / 1.328 GB, free: 107.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/2.47, allocations: 348.3 kB / 1.328 GB, free: 106.8 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/2.47, allocations: 49.95 kB / 1.328 GB, free: 106.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/2.47, allocations: 0 / 1.328 GB, free: 106.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=33): time 0.001344/2.472, allocations: 498.7 kB / 1.329 GB, free: 106.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/2.472, allocations: 55.41 kB / 1.329 GB, free: 106.2 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000618/2.472, allocations: 0.6401 MB / 1.329 GB, free: 105.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/2.472, allocations: 33.7 kB / 1.329 GB, free: 105.5 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/2.473, allocations: 407.4 kB / 1.33 GB, free: 105.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/2.473, allocations: 106.4 kB / 1.33 GB, free: 105 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/2.473, allocations: 3.938 kB / 1.33 GB, free: 104.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.734e-05/2.473, allocations: 333.9 kB / 1.33 GB, free: 104.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/2.473, allocations: 153.3 kB / 1.33 GB, free: 104.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/2.474, allocations: 1.413 MB / 1.332 GB, free: 102.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008736/2.475, allocations: 392 kB / 1.332 GB, free: 102.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.475, allocations: 0 / 1.332 GB, free: 102.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001373/2.476, allocations: 0.6711 MB / 1.333 GB, free: 101.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000143/2.477, allocations: 0.8017 MB / 1.333 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/2.477, allocations: 4 kB / 1.333 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/2.477, allocations: 8 kB / 1.333 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/2.478, allocations: 203.7 kB / 1.334 GB, free: 100.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/2.479, allocations: 3 MB / 1.337 GB, free: 97.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003139/2.482, allocations: 0.7578 MB / 1.337 GB, free: 96.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/2.482, allocations: 27.98 kB / 1.337 GB, free: 96.65 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/2.482, allocations: 8 kB / 1.337 GB, free: 96.64 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001089/2.483, allocations: 0.4907 MB / 1.338 GB, free: 96.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/2.483, allocations: 5.812 kB / 1.338 GB, free: 96.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.534e-06/2.483, allocations: 7.906 kB / 1.338 GB, free: 96.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/2.484, allocations: 164 kB / 1.338 GB, free: 95.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/2.484, allocations: 11.94 kB / 1.338 GB, free: 95.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/2.487, allocations: 0.7499 MB / 1.339 GB, free: 95.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/2.487, allocations: 31.98 kB / 1.339 GB, free: 95.19 MB / 0.6042 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.0002313/2.487, allocations: 129.8 kB / 1.339 GB, free: 95.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/2.488, allocations: 86.88 kB / 1.339 GB, free: 94.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/2.489, allocations: 0.5782 MB / 1.34 GB, free: 94.38 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/2.489, allocations: 7.984 kB / 1.34 GB, free: 94.38 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/2.489, allocations: 4 kB / 1.34 GB, free: 94.37 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/2.489, allocations: 0 / 1.34 GB, free: 94.37 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/2.491, allocations: 1.238 MB / 1.341 GB, free: 93.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/2.491, allocations: 4 kB / 1.341 GB, free: 93.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000546/2.492, allocations: 123.7 kB / 1.341 GB, free: 92.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/2.492, allocations: 0 / 1.341 GB, free: 92.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/2.492, allocations: 8 kB / 1.341 GB, free: 92.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008279/2.493, allocations: 2.969 MB / 1.344 GB, free: 89.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/2.493, allocations: 4.031 kB / 1.344 GB, free: 89.87 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009779/2.494, allocations: 0.6586 MB / 1.344 GB, free: 89.16 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/2.494, allocations: 219.7 kB / 1.345 GB, free: 88.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/2.494, allocations: 0 / 1.345 GB, free: 88.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007731/2.495, allocations: 71.77 kB / 1.345 GB, free: 88.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.513e-05/2.495, allocations: 23.97 kB / 1.345 GB, free: 88.83 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/2.495, allocations: 19.98 kB / 1.345 GB, free: 88.81 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004692/2.495, allocations: 484.6 kB / 1.345 GB, free: 88.33 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001995/2.497, allocations: 0.5809 MB / 1.346 GB, free: 87.75 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 (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.0009049/2.498, allocations: 0.5063 MB / 1.346 GB, free: 87.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002379/2.501, allocations: 0.775 MB / 1.347 GB, free: 86.52 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/2.501, allocations: 4 kB / 1.347 GB, free: 86.52 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004761/2.501, allocations: 220.7 kB / 1.347 GB, free: 86.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/2.503, allocations: 378.7 kB / 1.348 GB, free: 85.94 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/2.505, allocations: 1.076 MB / 1.349 GB, free: 84.83 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000655/2.506, allocations: 1.128 MB / 1.35 GB, free: 83.67 MB / 0.6042 GB Notification: Performance of SimCode: time 4.91e-07/2.506, allocations: 0 / 1.35 GB, free: 83.67 MB / 0.6042 GB Notification: Performance of Templates: time 0.03926/2.545, allocations: 26.62 MB / 1.376 GB, free: 57.79 MB / 0.6042 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)