Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) [: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/BuildSysPro 3.5.0/package.mo): time 0.9335/0.9335, allocations: 127.4 MB / 134.6 MB, free: 4.086 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.00114, allocations: 197.2 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.86/1.86, allocations: 205.1 MB / 399.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 80.19 kB / 476.3 MB, free: 8.867 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3588/0.36, allocations: 82.89 MB / 0.5461 GB, free: 42.67 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.5477, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.233/1.781, allocations: 358 MB / 0.9706 GB, free: 123.7 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/1.781, allocations: 99.67 kB / 0.9707 GB, free: 123.7 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.7792/2.561, allocations: 172.8 MB / 1.139 GB, free: 168.6 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/2.561, allocations: 11.84 kB / 1.139 GB, free: 168.6 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/2.561, allocations: 50.94 kB / 1.14 GB, free: 168.6 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009485/2.562, allocations: 424.7 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/2.562, allocations: 10.41 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/2.562, allocations: 14.94 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002861/2.562, allocations: 120 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/2.563, allocations: 155.9 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/2.563, allocations: 0 / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/2.563, allocations: 7.844 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/2.563, allocations: 3.938 kB / 1.14 GB, free: 168.3 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/2.564, allocations: 1.197 MB / 1.141 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/2.565, allocations: 77.48 kB / 1.141 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.616e-05/2.565, allocations: 25.48 kB / 1.142 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/2.565, allocations: 0 / 1.142 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/2.565, allocations: 30.56 kB / 1.142 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/2.565, allocations: 3.969 kB / 1.142 GB, free: 167.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000981/2.566, allocations: 194.5 kB / 1.142 GB, free: 167.4 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/2.566, allocations: 51.41 kB / 1.142 GB, free: 167.3 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004679/2.566, allocations: 376.1 kB / 1.142 GB, free: 167.2 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/2.566, allocations: 25.7 kB / 1.142 GB, free: 167.2 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/2.567, allocations: 185.7 kB / 1.142 GB, free: 167.1 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/2.567, allocations: 28.94 kB / 1.142 GB, free: 167.1 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/2.567, allocations: 3.812 kB / 1.142 GB, free: 167.1 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001/2.567, allocations: 343.8 kB / 1.143 GB, free: 166.8 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/2.567, allocations: 55.38 kB / 1.143 GB, free: 166.7 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/2.567, allocations: 146.2 kB / 1.143 GB, free: 166.6 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/2.567, allocations: 74.5 kB / 1.143 GB, free: 166.6 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/2.567, allocations: 0 / 1.143 GB, free: 166.6 MB / 0.6355 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004654/2.568, allocations: 219.3 kB / 1.143 GB, free: 166.6 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.387e-05/2.568, allocations: 273.7 kB / 1.143 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/2.568, allocations: 2.812 kB / 1.143 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/2.568, allocations: 7.672 kB / 1.143 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/2.568, allocations: 57.23 kB / 1.143 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/2.568, allocations: 6.719 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005248/2.569, allocations: 55.14 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/2.569, allocations: 17.95 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/2.569, allocations: 7.562 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002945/2.569, allocations: 115.2 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/2.569, allocations: 0 / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.799e-06/2.569, allocations: 0 / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/2.569, allocations: 45.98 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/2.569, allocations: 3.375 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/2.57, allocations: 38.2 kB / 1.144 GB, free: 166.3 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/2.57, allocations: 16.41 kB / 1.144 GB, free: 166.3 MB / 0.6355 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 (21): * Single equations (assignments): 21 * 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 0.0001263/2.57, allocations: 112.4 kB / 1.144 GB, free: 166.2 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/2.57, allocations: 33.25 kB / 1.144 GB, free: 166.2 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/2.57, allocations: 132.9 kB / 1.144 GB, free: 166.1 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/2.57, allocations: 2.766 kB / 1.144 GB, free: 166.1 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/2.57, allocations: 0 / 1.144 GB, free: 166.1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/2.57, allocations: 3.219 kB / 1.144 GB, free: 166.1 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/2.571, allocations: 305.5 kB / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/2.571, allocations: 0 / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/2.571, allocations: 42.64 kB / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/2.571, allocations: 3.938 kB / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/2.571, allocations: 3.812 kB / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/2.571, allocations: 0 / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/2.571, allocations: 0.9375 kB / 1.144 GB, free: 166 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002925/2.571, allocations: 214.4 kB / 1.145 GB, free: 165.8 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004423/2.572, allocations: 0.612 MB / 1.145 GB, free: 165.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/2.572, allocations: 126.2 kB / 1.145 GB, free: 165.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.174e-05/2.572, allocations: 3.844 kB / 1.145 GB, free: 165.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/2.573, allocations: 41.39 kB / 1.145 GB, free: 165.2 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.756e-05/2.573, allocations: 10.39 kB / 1.145 GB, free: 165.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/2.573, allocations: 5.781 kB / 1.145 GB, free: 165.2 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0003199/2.573, allocations: 284.7 kB / 1.146 GB, free: 165.1 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002259/2.575, allocations: 277 kB / 1.146 GB, free: 165.1 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.001435/2.577, allocations: 483.2 kB / 1.146 GB, free: 165 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004476/2.577, allocations: 204.5 kB / 1.147 GB, free: 164.9 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.577, allocations: 3.562 kB / 1.147 GB, free: 164.9 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.323e-05/2.577, allocations: 32.98 kB / 1.147 GB, free: 164.9 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/2.578, allocations: 179.4 kB / 1.147 GB, free: 164.9 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007024/2.585, allocations: 1.022 MB / 1.148 GB, free: 164.8 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006584/2.586, allocations: 0.8714 MB / 1.149 GB, free: 164.1 MB / 0.6355 GB Notification: Performance of SimCode: time 2.215e-06/2.586, allocations: 0 / 1.149 GB, free: 164.1 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)