Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.402/2.402, allocations: 284.9 MB / 292.2 MB, free: 10.68 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001645/0.001645, allocations: 185.2 kB / 360.4 MB, free: 7.477 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.777/1.777, allocations: 205.1 MB / 0.6188 GB, free: 12.4 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00178/0.00178, allocations: 85.08 kB / 0.7318 GB, free: 2.125 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 9.408e-06/9.638e-06, allocations: 0 / 0.8502 GB, free: 8.703 MB / 0.6511 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2705, allocations: 115.3 MB / 0.9628 GB, free: 5.25 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.388/1.659, allocations: 401.7 MB / 1.355 GB, free: 238.2 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/1.659, allocations: 88.59 kB / 1.355 GB, free: 238.2 MB / 0.9011 GB Notification: Performance of FrontEnd: time 0.9861/2.645, allocations: 300.4 MB / 1.649 GB, free: 12.29 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001099/2.646, allocations: 24 kB / 1.649 GB, free: 12.27 MB / 0.9323 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.003623/2.649, allocations: 1.244 MB / 1.65 GB, free: 10.97 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/2.649, allocations: 8.031 kB / 1.65 GB, free: 10.96 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/2.65, allocations: 118.6 kB / 1.65 GB, free: 10.85 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/2.652, allocations: 0.6725 MB / 1.651 GB, free: 10.14 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/2.652, allocations: 16 kB / 1.651 GB, free: 10.12 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002389/2.653, allocations: 40 kB / 1.651 GB, free: 10.08 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/2.654, allocations: 402.5 kB / 1.651 GB, free: 9.688 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/2.656, allocations: 0.574 MB / 1.652 GB, free: 9.074 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/2.656, allocations: 4 kB / 1.652 GB, free: 9.07 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/2.656, allocations: 0 / 1.652 GB, free: 9.07 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/2.656, allocations: 12 kB / 1.652 GB, free: 9.059 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005747/2.661, allocations: 2.471 MB / 1.654 GB, free: 6.484 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000996/2.663, allocations: 346.7 kB / 1.654 GB, free: 6.137 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005871/2.663, allocations: 184.8 kB / 1.654 GB, free: 5.953 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004888/2.664, allocations: 348.4 kB / 1.655 GB, free: 5.539 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007084/2.664, allocations: 309.6 kB / 1.655 GB, free: 5.203 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.346e-06/2.664, allocations: 3.938 kB / 1.655 GB, free: 5.199 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.002582/2.667, allocations: 0.5553 MB / 1.656 GB, free: 4.637 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/2.667, allocations: 235.6 kB / 1.656 GB, free: 4.352 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/2.669, allocations: 0.5943 MB / 1.656 GB, free: 3.746 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001482/2.669, allocations: 33.7 kB / 1.656 GB, free: 3.707 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/2.669, allocations: 311.9 kB / 1.657 GB, free: 3.398 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/2.669, allocations: 110.4 kB / 1.657 GB, free: 3.289 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/2.669, allocations: 0 / 1.657 GB, free: 3.289 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001621/2.669, allocations: 337.9 kB / 1.657 GB, free: 2.953 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/2.67, allocations: 185.3 kB / 1.657 GB, free: 2.77 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007976/2.671, allocations: 380.6 kB / 1.658 GB, free: 2.32 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001772/2.673, allocations: 329 kB / 1.658 GB, free: 1.996 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/2.673, allocations: 4 kB / 1.658 GB, free: 1.992 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002912/2.676, allocations: 0.702 MB / 1.659 GB, free: 1.281 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005079/2.676, allocations: 1.046 MB / 1.66 GB, free: 156 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/2.676, allocations: 7.984 kB / 1.66 GB, free: 148 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/2.676, allocations: 8 kB / 1.66 GB, free: 140 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3214/2.998, allocations: 167.1 kB / 1.66 GB, free: 325.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/2.999, allocations: 1.804 MB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/3, allocations: 110.8 kB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/3.001, allocations: 33.89 kB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/3.001, allocations: 3.75 kB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00215/3.003, allocations: 0.5627 MB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/3.003, allocations: 9.875 kB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/3.003, allocations: 9.281 kB / 1.662 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/3.004, allocations: 133.3 kB / 1.663 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/3.004, allocations: 7.656 kB / 1.663 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/3.005, allocations: 101.6 kB / 1.663 GB, free: 324 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/3.005, allocations: 29.52 kB / 1.663 GB, free: 324 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.0002515/3.006, allocations: 162.2 kB / 1.663 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/3.006, allocations: 80.75 kB / 1.663 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/3.009, allocations: 0.6653 MB / 1.664 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/3.009, allocations: 3.406 kB / 1.664 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.026e-06/3.009, allocations: 3.875 kB / 1.664 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/3.009, allocations: 3.375 kB / 1.664 GB, free: 323.8 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003784/3.012, allocations: 1.454 MB / 1.665 GB, free: 323.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/3.013, allocations: 0 / 1.665 GB, free: 323.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008429/3.013, allocations: 102.9 kB / 1.665 GB, free: 323.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/3.013, allocations: 3.875 kB / 1.665 GB, free: 323.4 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/3.013, allocations: 13.83 kB / 1.665 GB, free: 323.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007782/3.014, allocations: 1.779 MB / 1.667 GB, free: 321.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/3.014, allocations: 0 / 1.667 GB, free: 321.6 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002918/3.017, allocations: 1.157 MB / 1.668 GB, free: 321.2 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006224/3.018, allocations: 237.6 kB / 1.668 GB, free: 321.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/3.018, allocations: 9 kB / 1.668 GB, free: 321.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/3.019, allocations: 75.03 kB / 1.668 GB, free: 321.1 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/3.019, allocations: 42.34 kB / 1.668 GB, free: 321.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.794e-05/3.02, allocations: 25.8 kB / 1.668 GB, free: 321.1 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0007916/3.02, allocations: 449.6 kB / 1.669 GB, free: 321 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002101/3.022, allocations: 497.8 kB / 1.669 GB, free: 320.9 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.001393/3.024, allocations: 494.7 kB / 1.67 GB, free: 320.9 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003156/3.027, allocations: 0.8438 MB / 1.671 GB, free: 320.8 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/3.027, allocations: 0 / 1.671 GB, free: 320.8 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009936/3.028, allocations: 299.7 kB / 1.671 GB, free: 320.8 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/3.031, allocations: 304.4 kB / 1.671 GB, free: 320.8 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/3.035, allocations: 1.058 MB / 1.672 GB, free: 320.4 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008882/3.036, allocations: 1.084 MB / 1.673 GB, free: 319.7 MB / 0.9323 GB Notification: Performance of SimCode: time 1.643e-06/3.036, allocations: 3.312 kB / 1.673 GB, free: 319.7 MB / 0.9323 GB Notification: Performance of Templates: time 0.04505/3.081, allocations: 17.38 MB / 1.69 GB, free: 319.6 MB / 0.9323 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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 & ./Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)