Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 2.158/2.158, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 185.3 kB / 490.8 MB, free: 1.977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.67/1.67, allocations: 221.4 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 94.45 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7889/0.79, allocations: 149.1 MB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/1.134, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.17/2.303, allocations: 397.3 MB / 1.6 GB, free: 1.91 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/2.304, allocations: 94.62 kB / 1.6 GB, free: 1.863 MB / 1.01 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 1.168/3.472, allocations: 178.5 MB / 1.774 GB, free: 303.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/3.472, allocations: 11 kB / 1.774 GB, free: 303.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/3.472, allocations: 61.03 kB / 1.774 GB, free: 303.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/3.473, allocations: 422.2 kB / 1.775 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/3.473, allocations: 7.094 kB / 1.775 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.781e-05/3.473, allocations: 24.22 kB / 1.775 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003209/3.474, allocations: 131.4 kB / 1.775 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/3.474, allocations: 157.9 kB / 1.775 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/3.474, allocations: 0 / 1.775 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/3.474, allocations: 3.562 kB / 1.775 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/3.474, allocations: 3.5 kB / 1.775 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/3.476, allocations: 0.8833 MB / 1.776 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/3.476, allocations: 120.1 kB / 1.776 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/3.476, allocations: 57.39 kB / 1.776 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003532/3.477, allocations: 337.1 kB / 1.776 GB, free: 302.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/3.477, allocations: 34.47 kB / 1.776 GB, free: 302.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/3.477, allocations: 3.5 kB / 1.776 GB, free: 302.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=14): time 0.000557/3.477, allocations: 162.4 kB / 1.776 GB, free: 302.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/3.477, allocations: 55.28 kB / 1.776 GB, free: 302.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/3.478, allocations: 365.1 kB / 1.777 GB, free: 302 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/3.478, allocations: 28.7 kB / 1.777 GB, free: 301.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/3.478, allocations: 174.4 kB / 1.777 GB, free: 301.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/3.478, allocations: 43.62 kB / 1.777 GB, free: 301.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/3.478, allocations: 3.844 kB / 1.777 GB, free: 301.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001018/3.478, allocations: 350.7 kB / 1.777 GB, free: 301.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.525e-05/3.478, allocations: 52.39 kB / 1.777 GB, free: 301.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/3.478, allocations: 156.2 kB / 1.778 GB, free: 301.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/3.479, allocations: 77.98 kB / 1.778 GB, free: 301.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/3.479, allocations: 0 / 1.778 GB, free: 301.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004219/3.479, allocations: 223 kB / 1.778 GB, free: 301.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.313e-05/3.479, allocations: 269.5 kB / 1.778 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/3.479, allocations: 0 / 1.778 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/3.479, allocations: 0 / 1.778 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/3.479, allocations: 58.88 kB / 1.778 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/3.479, allocations: 3.938 kB / 1.778 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/3.48, allocations: 46.64 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/3.48, allocations: 11.25 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/3.48, allocations: 3.781 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003589/3.48, allocations: 139.8 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/3.48, allocations: 0.7031 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.651e-06/3.48, allocations: 3.969 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/3.481, allocations: 53.08 kB / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/3.481, allocations: 0 / 1.778 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/3.481, allocations: 44.39 kB / 1.779 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.172e-05/3.481, allocations: 7.625 kB / 1.779 GB, free: 301 MB / 1.151 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 0.0001215/3.481, allocations: 112.4 kB / 1.779 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.397e-05/3.481, allocations: 42.38 kB / 1.779 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/3.482, allocations: 222.1 kB / 1.779 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/3.482, allocations: 3.156 kB / 1.779 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/3.482, allocations: 0 / 1.779 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/3.482, allocations: 3.797 kB / 1.779 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/3.483, allocations: 0.6339 MB / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/3.483, allocations: 0 / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/3.483, allocations: 34.42 kB / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/3.483, allocations: 7.484 kB / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/3.483, allocations: 0 / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/3.483, allocations: 7.219 kB / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/3.483, allocations: 3.812 kB / 1.78 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004402/3.484, allocations: 359 kB / 1.78 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005861/3.484, allocations: 0.7473 MB / 1.781 GB, free: 299.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/3.485, allocations: 141.2 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/3.485, allocations: 3.906 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/3.485, allocations: 35.94 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/3.485, allocations: 10.5 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/3.485, allocations: 14.3 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003127/3.485, allocations: 275.9 kB / 1.781 GB, free: 299.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00226/3.488, allocations: 288.1 kB / 1.781 GB, free: 299.4 MB / 1.151 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.001426/3.489, allocations: 487.4 kB / 1.782 GB, free: 299.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.000549/3.49, allocations: 236.8 kB / 1.782 GB, free: 299.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/3.49, allocations: 7.125 kB / 1.782 GB, free: 299.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/3.49, allocations: 69.12 kB / 1.782 GB, free: 299.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/3.491, allocations: 185.5 kB / 1.782 GB, free: 299.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/3.492, allocations: 0.5049 MB / 1.783 GB, free: 299.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004577/3.493, allocations: 0.879 MB / 1.784 GB, free: 298.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.292e-06/3.493, allocations: 3.125 kB / 1.784 GB, free: 298.4 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)