Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.208/1.208, allocations: 249.4 MB / 256.7 MB, free: 6.828 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009995/0.0009994, allocations: 177.2 kB / 316 MB, free: 3.52 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.092/1.092, allocations: 205.1 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000823/0.000823, allocations: 89.45 kB / 0.671 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2981/0.299, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.4428, allocations: 106.3 MB / 0.8846 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8919/1.335, allocations: 391.4 MB / 1.267 GB, free: 321.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/1.335, allocations: 92.45 kB / 1.267 GB, free: 321.6 MB / 0.8698 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.2898/1.625, allocations: 170.2 MB / 1.433 GB, free: 183 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/1.625, allocations: 11.94 kB / 1.433 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.267e-05/1.625, allocations: 59.34 kB / 1.433 GB, free: 182.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/1.626, allocations: 429.4 kB / 1.434 GB, free: 182.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/1.626, allocations: 8 kB / 1.434 GB, free: 182.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/1.626, allocations: 16 kB / 1.434 GB, free: 182.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000224/1.626, allocations: 124.8 kB / 1.434 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/1.626, allocations: 158.4 kB / 1.434 GB, free: 182.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/1.626, allocations: 4 kB / 1.434 GB, free: 182.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/1.626, allocations: 3.984 kB / 1.434 GB, free: 182.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/1.626, allocations: 7.906 kB / 1.434 GB, free: 182.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/1.627, allocations: 0.8777 MB / 1.435 GB, free: 181.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/1.627, allocations: 110.6 kB / 1.435 GB, free: 181 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.225e-05/1.627, allocations: 49.09 kB / 1.435 GB, free: 181 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/1.628, allocations: 344.4 kB / 1.435 GB, free: 180.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/1.628, allocations: 38.55 kB / 1.435 GB, free: 180.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/1.628, allocations: 0 / 1.435 GB, free: 180.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0003778/1.628, allocations: 169 kB / 1.435 GB, free: 180.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.61e-05/1.628, allocations: 51.41 kB / 1.435 GB, free: 180.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/1.628, allocations: 353.2 kB / 1.436 GB, free: 179.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/1.628, allocations: 29.7 kB / 1.436 GB, free: 179.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/1.629, allocations: 172.3 kB / 1.436 GB, free: 179.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/1.629, allocations: 43.3 kB / 1.436 GB, free: 179.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-06/1.629, allocations: 0 / 1.436 GB, free: 179.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.244e-05/1.629, allocations: 350.8 kB / 1.436 GB, free: 179.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.032e-05/1.629, allocations: 51.98 kB / 1.436 GB, free: 179.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/1.629, allocations: 153.3 kB / 1.437 GB, free: 179.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/1.629, allocations: 83.88 kB / 1.437 GB, free: 179 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/1.629, allocations: 0 / 1.437 GB, free: 179 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003374/1.629, allocations: 215.3 kB / 1.437 GB, free: 178.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/1.629, allocations: 270.9 kB / 1.437 GB, free: 178.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/1.629, allocations: 8 kB / 1.437 GB, free: 178.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/1.629, allocations: 0 / 1.437 GB, free: 178.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/1.63, allocations: 51.91 kB / 1.437 GB, free: 178.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/1.63, allocations: 0 / 1.437 GB, free: 178.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/1.63, allocations: 39.81 kB / 1.437 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/1.63, allocations: 15.98 kB / 1.437 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.678e-06/1.63, allocations: 4 kB / 1.437 GB, free: 178.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000271/1.63, allocations: 141 kB / 1.437 GB, free: 178.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-06/1.63, allocations: 0 / 1.437 GB, free: 178.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-06/1.63, allocations: 4 kB / 1.437 GB, free: 178.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/1.631, allocations: 51.91 kB / 1.437 GB, free: 178.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-06/1.631, allocations: 4 kB / 1.437 GB, free: 178.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/1.631, allocations: 35.81 kB / 1.437 GB, free: 178.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/1.631, allocations: 19.98 kB / 1.438 GB, free: 178.2 MB / 0.8698 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 5.848e-05/1.631, allocations: 108.9 kB / 1.438 GB, free: 178 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/1.631, allocations: 35.53 kB / 1.438 GB, free: 178 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/1.631, allocations: 220.9 kB / 1.438 GB, free: 177.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/1.632, allocations: 4 kB / 1.438 GB, free: 177.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/1.632, allocations: 0 / 1.438 GB, free: 177.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/1.632, allocations: 4 kB / 1.438 GB, free: 177.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/1.632, allocations: 0.6354 MB / 1.438 GB, free: 177.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.632, allocations: 0 / 1.438 GB, free: 177.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/1.632, allocations: 44 kB / 1.439 GB, free: 177 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/1.632, allocations: 0 / 1.439 GB, free: 177 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/1.632, allocations: 4 kB / 1.439 GB, free: 177 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/1.632, allocations: 0 / 1.439 GB, free: 177 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.632, allocations: 11.88 kB / 1.439 GB, free: 177 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003006/1.633, allocations: 350.4 kB / 1.439 GB, free: 176.6 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003726/1.633, allocations: 0.7397 MB / 1.44 GB, free: 175.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/1.633, allocations: 140.5 kB / 1.44 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/1.633, allocations: 8 kB / 1.44 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/1.633, allocations: 19.92 kB / 1.44 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/1.634, allocations: 23.97 kB / 1.44 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/1.634, allocations: 4 kB / 1.44 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002095/1.634, allocations: 275.2 kB / 1.44 GB, free: 175.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001853/1.636, allocations: 291.4 kB / 1.44 GB, free: 175.1 MB / 0.8698 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.0008049/1.636, allocations: 0.4959 MB / 1.441 GB, free: 174.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003484/1.637, allocations: 237.8 kB / 1.441 GB, free: 174.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.637, allocations: 0 / 1.441 GB, free: 174.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.06e-05/1.637, allocations: 67.92 kB / 1.441 GB, free: 174.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/1.638, allocations: 186.1 kB / 1.441 GB, free: 174.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008241/1.639, allocations: 0.5004 MB / 1.442 GB, free: 173.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/1.639, allocations: 0.8698 MB / 1.443 GB, free: 172.7 MB / 0.8698 GB Notification: Performance of SimCode: time 2.61e-07/1.639, allocations: 4 kB / 1.443 GB, free: 172.7 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)