Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.098/2.098, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001109/0.001109, allocations: 165.4 kB / 487 MB, free: 5.359 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.449/1.449, allocations: 221.3 MB / 0.7819 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009806/0.0009806, allocations: 114 kB / 0.9213 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5349/0.5359, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.7627, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.926/1.689, allocations: 400.1 MB / 1.596 GB, free: 6.758 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/1.689, allocations: 94.66 kB / 1.596 GB, free: 6.707 MB / 1.026 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 1.249/2.938, allocations: 307.7 MB / 1.897 GB, free: 268.7 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/2.938, allocations: 11.94 kB / 1.897 GB, free: 268.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/2.938, allocations: 122.5 kB / 1.897 GB, free: 268.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/2.94, allocations: 0.6686 MB / 1.897 GB, free: 267.8 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/2.94, allocations: 20 kB / 1.897 GB, free: 267.8 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/2.94, allocations: 40 kB / 1.897 GB, free: 267.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000635/2.94, allocations: 406.5 kB / 1.898 GB, free: 267.4 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007411/2.941, allocations: 0.5701 MB / 1.898 GB, free: 266.7 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/2.941, allocations: 3.984 kB / 1.898 GB, free: 266.7 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.992e-05/2.941, allocations: 8 kB / 1.898 GB, free: 266.7 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/2.941, allocations: 12 kB / 1.898 GB, free: 266.7 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002692/2.944, allocations: 2.477 MB / 1.901 GB, free: 264.1 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/2.944, allocations: 331.7 kB / 1.901 GB, free: 263.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/2.945, allocations: 181.1 kB / 1.901 GB, free: 263.6 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002573/2.945, allocations: 348.8 kB / 1.902 GB, free: 263.2 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/2.945, allocations: 329.2 kB / 1.902 GB, free: 262.8 MB / 1.135 GB Notification: Performance of pre-optimization done (n=37): time 2.404e-06/2.945, allocations: 0 / 1.902 GB, free: 262.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=37): time 0.001316/2.947, allocations: 0.5514 MB / 1.902 GB, free: 262.3 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/2.947, allocations: 239.6 kB / 1.903 GB, free: 262 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/2.947, allocations: 0.5946 MB / 1.903 GB, free: 261.4 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 4.859e-05/2.947, allocations: 37.77 kB / 1.903 GB, free: 261.4 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/2.947, allocations: 311.9 kB / 1.904 GB, free: 261 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/2.947, allocations: 118.3 kB / 1.904 GB, free: 260.9 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/2.948, allocations: 0 / 1.904 GB, free: 260.9 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 5.477e-05/2.948, allocations: 330 kB / 1.904 GB, free: 260.6 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/2.948, allocations: 189.3 kB / 1.904 GB, free: 260.4 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/2.948, allocations: 387.9 kB / 1.905 GB, free: 260 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008173/2.949, allocations: 321.1 kB / 1.905 GB, free: 259.6 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/2.949, allocations: 0 / 1.905 GB, free: 259.6 MB / 1.135 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001327/2.95, allocations: 0.7059 MB / 1.906 GB, free: 258.9 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001764/2.951, allocations: 1.051 MB / 1.907 GB, free: 257.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/2.951, allocations: 4 kB / 1.907 GB, free: 257.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/2.951, allocations: 8 kB / 1.907 GB, free: 257.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/2.952, allocations: 159.7 kB / 1.907 GB, free: 257.6 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007835/2.952, allocations: 1.809 MB / 1.909 GB, free: 255.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007754/2.953, allocations: 111.5 kB / 1.909 GB, free: 255.6 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/2.953, allocations: 35.98 kB / 1.909 GB, free: 255.6 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 6.572e-06/2.953, allocations: 4 kB / 1.909 GB, free: 255.6 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001149/2.954, allocations: 0.5607 MB / 1.909 GB, free: 255 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/2.954, allocations: 4 kB / 1.909 GB, free: 255 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.613e-06/2.954, allocations: 4 kB / 1.909 GB, free: 255 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/2.955, allocations: 136.1 kB / 1.909 GB, free: 254.9 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/2.955, allocations: 8 kB / 1.909 GB, free: 254.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006637/2.956, allocations: 103.5 kB / 1.909 GB, free: 254.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/2.956, allocations: 28 kB / 1.91 GB, free: 254.8 MB / 1.135 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.0002251/2.956, allocations: 163.3 kB / 1.91 GB, free: 254.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/2.956, allocations: 86.88 kB / 1.91 GB, free: 254.5 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/2.958, allocations: 0.6803 MB / 1.91 GB, free: 253.8 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/2.958, allocations: 11.84 kB / 1.91 GB, free: 253.8 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.958, allocations: 0 / 1.91 GB, free: 253.8 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/2.958, allocations: 4 kB / 1.91 GB, free: 253.8 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/2.96, allocations: 1.463 MB / 1.912 GB, free: 252.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/2.96, allocations: 4 kB / 1.912 GB, free: 252.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/2.961, allocations: 95.88 kB / 1.912 GB, free: 252.2 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/2.961, allocations: 0 / 1.912 GB, free: 252.2 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/2.961, allocations: 20.11 kB / 1.912 GB, free: 252.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000659/2.961, allocations: 1.778 MB / 1.914 GB, free: 250.3 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/2.961, allocations: 4 kB / 1.914 GB, free: 250.3 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001535/2.963, allocations: 1.164 MB / 1.915 GB, free: 249.1 MB / 1.135 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001882/2.965, allocations: 1.818 MB / 1.917 GB, free: 247.2 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/2.965, allocations: 232.6 kB / 1.917 GB, free: 247 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/2.965, allocations: 4 kB / 1.917 GB, free: 247 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006279/2.966, allocations: 75.92 kB / 1.917 GB, free: 246.9 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/2.966, allocations: 51.83 kB / 1.917 GB, free: 246.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/2.966, allocations: 20 kB / 1.917 GB, free: 246.8 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0004371/2.966, allocations: 463.1 kB / 1.917 GB, free: 246.4 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002829/2.969, allocations: 0.5692 MB / 1.918 GB, free: 245.8 MB / 1.135 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.0009922/2.97, allocations: 492.3 kB / 1.918 GB, free: 245.3 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001824/2.972, allocations: 0.8361 MB / 1.919 GB, free: 244.5 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/2.972, allocations: 0 / 1.919 GB, free: 244.5 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004892/2.973, allocations: 309.8 kB / 1.92 GB, free: 244.2 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/2.974, allocations: 296.1 kB / 1.92 GB, free: 243.9 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/2.976, allocations: 1.069 MB / 1.921 GB, free: 242.8 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005562/2.977, allocations: 1.096 MB / 1.922 GB, free: 241.6 MB / 1.135 GB Notification: Performance of SimCode: time 7.12e-07/2.977, allocations: 0 / 1.922 GB, free: 241.6 MB / 1.135 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)