Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 15.71 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 185.4 kB / 316 MB, free: 7.09 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.279/1.279, allocations: 205.1 MB / 0.5667 GB, free: 23.86 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.0008681/0.0008681, allocations: 86.09 kB / 0.671 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2225/0.2234, allocations: 112.5 MB / 0.7808 GB, free: 416 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.6794, allocations: 106.3 MB / 0.8846 GB, free: 76.26 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7198/1.399, allocations: 394.3 MB / 1.27 GB, free: 11.73 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/1.4, allocations: 87.22 kB / 1.27 GB, free: 11.68 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.9269/2.327, allocations: 293.6 MB / 1.557 GB, free: 157 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/2.327, allocations: 15.94 kB / 1.557 GB, free: 157 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/2.327, allocations: 110.7 kB / 1.557 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/2.328, allocations: 0.6802 MB / 1.557 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/2.328, allocations: 16 kB / 1.557 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/2.328, allocations: 40 kB / 1.557 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005901/2.329, allocations: 398.5 kB / 1.558 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007013/2.329, allocations: 0.574 MB / 1.558 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/2.329, allocations: 0 / 1.558 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/2.329, allocations: 4 kB / 1.558 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/2.329, allocations: 12 kB / 1.558 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002552/2.332, allocations: 2.461 MB / 1.561 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/2.332, allocations: 341.8 kB / 1.561 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/2.333, allocations: 185.1 kB / 1.561 GB, free: 152 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002391/2.333, allocations: 348.4 kB / 1.562 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/2.333, allocations: 309.1 kB / 1.562 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 2.805e-06/2.333, allocations: 4 kB / 1.562 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.001253/2.335, allocations: 0.5475 MB / 1.562 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/2.335, allocations: 243.5 kB / 1.563 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/2.335, allocations: 0.5905 MB / 1.563 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/2.335, allocations: 29.7 kB / 1.563 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/2.335, allocations: 311.9 kB / 1.564 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.009e-05/2.335, allocations: 118.3 kB / 1.564 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/2.335, allocations: 0 / 1.564 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.037e-05/2.336, allocations: 330 kB / 1.564 GB, free: 149 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/2.336, allocations: 193.3 kB / 1.564 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/2.336, allocations: 376.6 kB / 1.564 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/2.337, allocations: 331.5 kB / 1.565 GB, free: 148 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/2.337, allocations: 0 / 1.565 GB, free: 148 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00126/2.338, allocations: 0.7137 MB / 1.565 GB, free: 147.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/2.338, allocations: 1.041 MB / 1.567 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/2.338, allocations: 8 kB / 1.567 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/2.338, allocations: 4 kB / 1.567 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009576/2.339, allocations: 163.7 kB / 1.567 GB, free: 146 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007291/2.34, allocations: 1.797 MB / 1.568 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007642/2.341, allocations: 107.6 kB / 1.569 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.85e-05/2.341, allocations: 35.98 kB / 1.569 GB, free: 144 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.627e-06/2.341, allocations: 4.547 kB / 1.569 GB, free: 144 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001107/2.342, allocations: 0.5646 MB / 1.569 GB, free: 143.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/2.342, allocations: 4 kB / 1.569 GB, free: 143.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.195e-06/2.342, allocations: 8 kB / 1.569 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/2.343, allocations: 132.1 kB / 1.569 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/2.343, allocations: 19.92 kB / 1.569 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/2.343, allocations: 95.52 kB / 1.569 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/2.343, allocations: 39.98 kB / 1.569 GB, free: 143.2 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001638/2.343, allocations: 152.2 kB / 1.57 GB, free: 143 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.345e-05/2.344, allocations: 82.97 kB / 1.57 GB, free: 142.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/2.345, allocations: 0.6762 MB / 1.57 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/2.345, allocations: 4 kB / 1.57 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.345, allocations: 0 / 1.57 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/2.345, allocations: 0 / 1.57 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/2.347, allocations: 1.452 MB / 1.572 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/2.347, allocations: 8.125 kB / 1.572 GB, free: 140.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004092/2.348, allocations: 91.86 kB / 1.572 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/2.348, allocations: 4 kB / 1.572 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/2.348, allocations: 15.98 kB / 1.572 GB, free: 140.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005095/2.348, allocations: 1.781 MB / 1.574 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/2.348, allocations: 288 / 1.574 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001434/2.35, allocations: 1.164 MB / 1.575 GB, free: 137.5 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001876/2.351, allocations: 1.813 MB / 1.576 GB, free: 135.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003615/2.352, allocations: 220.7 kB / 1.577 GB, free: 135.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/2.352, allocations: 16 kB / 1.577 GB, free: 135.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/2.353, allocations: 79.83 kB / 1.577 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/2.353, allocations: 39.92 kB / 1.577 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.274e-05/2.353, allocations: 20 kB / 1.577 GB, free: 135.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0004733/2.353, allocations: 459.1 kB / 1.577 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002668/2.356, allocations: 0.5652 MB / 1.578 GB, free: 134.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008599/2.357, allocations: 484 kB / 1.578 GB, free: 133.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001676/2.358, allocations: 0.8319 MB / 1.579 GB, free: 133 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/2.358, allocations: 0 / 1.579 GB, free: 133 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004644/2.359, allocations: 306.6 kB / 1.579 GB, free: 132.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/2.36, allocations: 302.9 kB / 1.58 GB, free: 132.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/2.362, allocations: 1.054 MB / 1.581 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005373/2.363, allocations: 1.092 MB / 1.582 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of SimCode: time 6.21e-07/2.363, allocations: 0 / 1.582 GB, free: 130.1 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)