Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.647/1.647, allocations: 289.8 MB / 297.1 MB, free: 6.566 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001689/0.001689, allocations: 177.3 kB / 366.3 MB, free: 1.93 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.2 MB / 0.6256 GB, free: 5.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001331/0.00133, allocations: 92.31 kB / 0.7396 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3485/0.3499, allocations: 122.4 MB / 0.8591 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7374/1.087, allocations: 116.3 MB / 0.9726 GB, free: 68.46 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9933/2.081, allocations: 402.9 MB / 1.366 GB, free: 85.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/2.081, allocations: 96.16 kB / 1.366 GB, free: 85.16 MB / 0.823 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.136/3.217, allocations: 301.6 MB / 1.661 GB, free: 269.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/3.217, allocations: 11 kB / 1.661 GB, free: 269.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002306/3.218, allocations: 115.9 kB / 1.661 GB, free: 269.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/3.219, allocations: 0.6772 MB / 1.662 GB, free: 269.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/3.219, allocations: 21.28 kB / 1.662 GB, free: 269.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.644e-05/3.219, allocations: 36.75 kB / 1.662 GB, free: 269.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006614/3.22, allocations: 402.3 kB / 1.662 GB, free: 269.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008048/3.22, allocations: 0.5717 MB / 1.663 GB, free: 269 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/3.221, allocations: 0 / 1.663 GB, free: 269 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.745e-05/3.221, allocations: 3.469 kB / 1.663 GB, free: 269 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/3.221, allocations: 18.59 kB / 1.663 GB, free: 268.9 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/3.224, allocations: 2.456 MB / 1.665 GB, free: 267.3 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005295/3.224, allocations: 345.7 kB / 1.665 GB, free: 267.2 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/3.224, allocations: 182.6 kB / 1.665 GB, free: 267.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/3.225, allocations: 348.5 kB / 1.666 GB, free: 266.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/3.225, allocations: 318 kB / 1.666 GB, free: 266.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 2.825e-06/3.225, allocations: 0 / 1.666 GB, free: 266.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.001421/3.227, allocations: 0.5519 MB / 1.667 GB, free: 266.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/3.227, allocations: 239.2 kB / 1.667 GB, free: 266.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006255/3.227, allocations: 0.5917 MB / 1.667 GB, free: 265.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.303e-05/3.227, allocations: 33.45 kB / 1.667 GB, free: 265.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/3.228, allocations: 315 kB / 1.668 GB, free: 265.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.255e-05/3.228, allocations: 114.8 kB / 1.668 GB, free: 265.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/3.228, allocations: 0 / 1.668 GB, free: 265.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.647e-05/3.228, allocations: 327.4 kB / 1.668 GB, free: 265.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002912/3.228, allocations: 188.8 kB / 1.668 GB, free: 265.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/3.228, allocations: 387.5 kB / 1.669 GB, free: 264.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008833/3.229, allocations: 334.1 kB / 1.669 GB, free: 264.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/3.229, allocations: 0 / 1.669 GB, free: 264.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001404/3.231, allocations: 0.6993 MB / 1.67 GB, free: 264.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002717/3.231, allocations: 1.057 MB / 1.671 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/3.231, allocations: 0 / 1.671 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/3.231, allocations: 7.219 kB / 1.671 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009966/3.232, allocations: 166.8 kB / 1.671 GB, free: 263.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008347/3.233, allocations: 1.809 MB / 1.673 GB, free: 261.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008069/3.234, allocations: 98.58 kB / 1.673 GB, free: 261.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.53e-05/3.234, allocations: 31.47 kB / 1.673 GB, free: 261.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/3.234, allocations: 5.969 kB / 1.673 GB, free: 261.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001183/3.235, allocations: 0.5663 MB / 1.673 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/3.235, allocations: 14.95 kB / 1.673 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/3.235, allocations: 7.281 kB / 1.673 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/3.236, allocations: 130.2 kB / 1.674 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/3.236, allocations: 3.875 kB / 1.674 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000666/3.236, allocations: 104.9 kB / 1.674 GB, free: 261.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/3.236, allocations: 28.25 kB / 1.674 GB, free: 261.4 MB / 0.948 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.000171/3.237, allocations: 158.4 kB / 1.674 GB, free: 261.2 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/3.237, allocations: 83.69 kB / 1.674 GB, free: 261.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/3.238, allocations: 0.6711 MB / 1.675 GB, free: 261 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/3.238, allocations: 6.531 kB / 1.675 GB, free: 261 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/3.238, allocations: 0 / 1.675 GB, free: 261 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/3.238, allocations: 6.391 kB / 1.675 GB, free: 261 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/3.241, allocations: 1.471 MB / 1.676 GB, free: 260.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/3.241, allocations: 7.219 kB / 1.676 GB, free: 260.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/3.241, allocations: 99.55 kB / 1.676 GB, free: 260.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/3.241, allocations: 3.656 kB / 1.676 GB, free: 260.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/3.241, allocations: 12.83 kB / 1.676 GB, free: 260.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000644/3.242, allocations: 1.78 MB / 1.678 GB, free: 258.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/3.242, allocations: 2.812 kB / 1.678 GB, free: 258.4 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001658/3.243, allocations: 1.145 MB / 1.679 GB, free: 257.8 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002072/3.246, allocations: 1.824 MB / 1.681 GB, free: 256.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000442/3.246, allocations: 227.1 kB / 1.681 GB, free: 256.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/3.246, allocations: 11.75 kB / 1.681 GB, free: 256.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006402/3.247, allocations: 72.84 kB / 1.681 GB, free: 256.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/3.247, allocations: 41.52 kB / 1.681 GB, free: 256.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-05/3.247, allocations: 23.06 kB / 1.681 GB, free: 256.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.000593/3.248, allocations: 462.4 kB / 1.682 GB, free: 256.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00345/3.251, allocations: 0.5648 MB / 1.682 GB, free: 256.1 MB / 0.948 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.001281/3.252, allocations: 493.2 kB / 1.683 GB, free: 255.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002565/3.255, allocations: 0.8369 MB / 1.683 GB, free: 255.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/3.255, allocations: 0.5312 kB / 1.683 GB, free: 255.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006753/3.256, allocations: 302.7 kB / 1.684 GB, free: 255.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/3.257, allocations: 315.2 kB / 1.684 GB, free: 255.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/3.26, allocations: 1.05 MB / 1.685 GB, free: 255 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/3.261, allocations: 1.09 MB / 1.686 GB, free: 254.2 MB / 0.948 GB Notification: Performance of SimCode: time 4.71e-07/3.261, allocations: 3.594 kB / 1.686 GB, free: 254.2 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)