Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.462/2.462, allocations: 284.8 MB / 292.1 MB, free: 10.78 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.001637/0.001636, allocations: 189.2 kB / 360.3 MB, free: 7.531 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.022/2.022, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.002035/0.002035, allocations: 97.94 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2957/0.2978, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7204/1.018, allocations: 115.2 MB / 0.9628 GB, free: 78.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/2.129, allocations: 401.7 MB / 1.355 GB, free: 166 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004453/2.13, allocations: 90.89 kB / 1.355 GB, free: 166 MB / 0.8542 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.633/3.763, allocations: 301.7 MB / 1.65 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.519e-05/3.763, allocations: 9.594 kB / 1.65 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007482/3.764, allocations: 119.7 kB / 1.65 GB, free: 238.1 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/3.767, allocations: 0.6669 MB / 1.651 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.428e-05/3.767, allocations: 21.56 kB / 1.651 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000239/3.767, allocations: 41.22 kB / 1.651 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001851/3.769, allocations: 402.5 kB / 1.651 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/3.772, allocations: 0.5753 MB / 1.652 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-05/3.772, allocations: 2.625 kB / 1.652 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/3.773, allocations: 3.125 kB / 1.652 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.228e-05/3.773, allocations: 14.84 kB / 1.652 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005868/3.779, allocations: 2.468 MB / 1.654 GB, free: 236.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/3.78, allocations: 337 kB / 1.654 GB, free: 236.5 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004692/3.78, allocations: 183.5 kB / 1.654 GB, free: 236.4 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003858/3.781, allocations: 352.4 kB / 1.655 GB, free: 236.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000591/3.781, allocations: 313.9 kB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 2.735e-06/3.781, allocations: 2.156 kB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.002462/3.784, allocations: 0.5476 MB / 1.656 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.621e-05/3.784, allocations: 247.4 kB / 1.656 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/3.786, allocations: 0.5827 MB / 1.656 GB, free: 235.5 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001978/3.786, allocations: 33.14 kB / 1.656 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.000266/3.786, allocations: 316.6 kB / 1.657 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/3.786, allocations: 116.2 kB / 1.657 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/3.786, allocations: 0 / 1.657 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.307e-05/3.786, allocations: 333.2 kB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005159/3.787, allocations: 192.7 kB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006465/3.788, allocations: 388.2 kB / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/3.789, allocations: 325.5 kB / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/3.789, allocations: 0 / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002714/3.792, allocations: 0.7042 MB / 1.659 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002625/3.792, allocations: 1.051 MB / 1.66 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/3.792, allocations: 0 / 1.66 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/3.792, allocations: 6.875 kB / 1.66 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/3.794, allocations: 161.5 kB / 1.66 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/3.796, allocations: 1.806 MB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/3.798, allocations: 116.1 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/3.798, allocations: 28.81 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/3.798, allocations: 5.156 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002694/3.801, allocations: 0.5607 MB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/3.801, allocations: 5.469 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/3.801, allocations: 3.688 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/3.802, allocations: 140.1 kB / 1.663 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/3.802, allocations: 10.97 kB / 1.663 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/3.804, allocations: 94.36 kB / 1.663 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/3.804, allocations: 27.95 kB / 1.663 GB, free: 231.7 MB / 0.9323 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.0004473/3.805, allocations: 167.6 kB / 1.663 GB, free: 231.5 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/3.805, allocations: 86.19 kB / 1.663 GB, free: 231.5 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/3.81, allocations: 0.6667 MB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/3.81, allocations: 4.484 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.896e-05/3.81, allocations: 7.75 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/3.81, allocations: 3.75 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006411/3.816, allocations: 1.459 MB / 1.665 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/3.816, allocations: 0 / 1.665 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/3.818, allocations: 101.5 kB / 1.665 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.819e-05/3.818, allocations: 3.812 kB / 1.665 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/3.818, allocations: 15.7 kB / 1.665 GB, free: 231 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/3.819, allocations: 1.783 MB / 1.667 GB, free: 229.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.994e-06/3.819, allocations: 0 / 1.667 GB, free: 229.2 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005195/3.824, allocations: 1.15 MB / 1.668 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003752/3.828, allocations: 1.829 MB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000705/3.829, allocations: 222.7 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/3.829, allocations: 5.969 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/3.83, allocations: 73.25 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/3.831, allocations: 45 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.037e-05/3.831, allocations: 21.78 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0009778/3.832, allocations: 452.9 kB / 1.671 GB, free: 227.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.004449/3.836, allocations: 0.5721 MB / 1.671 GB, free: 227.7 MB / 0.9323 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.001424/3.838, allocations: 486.4 kB / 1.672 GB, free: 227.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.004728/3.842, allocations: 0.8424 MB / 1.672 GB, free: 227.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.525e-05/3.843, allocations: 2.531 kB / 1.672 GB, free: 227.5 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.00172/3.844, allocations: 308.2 kB / 1.673 GB, free: 227.4 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005393/3.85, allocations: 292.2 kB / 1.673 GB, free: 227.4 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/3.856, allocations: 1.063 MB / 1.674 GB, free: 227.1 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/3.857, allocations: 1.083 MB / 1.675 GB, free: 226.4 MB / 0.9323 GB Notification: Performance of SimCode: time 2.255e-06/3.857, allocations: 3.281 kB / 1.675 GB, free: 226.4 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)