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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.499/1.499, allocations: 289.8 MB / 297.1 MB, free: 6.57 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.001179/0.001179, allocations: 192.2 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 1.375/1.375, allocations: 205.1 MB / 0.6256 GB, free: 5.766 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.0008953/0.0008954, allocations: 92.22 kB / 0.7396 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.066e-05/1.074e-05, allocations: 4 kB / 0.859 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5696/0.5696, allocations: 116.3 MB / 0.9726 GB, free: 68.29 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7723/1.342, allocations: 402.9 MB / 1.366 GB, free: 85.24 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/1.342, allocations: 98.73 kB / 1.366 GB, free: 85.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.9503/2.293, allocations: 300.4 MB / 1.659 GB, free: 195.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.561e-05/2.293, allocations: 29 kB / 1.659 GB, free: 195.7 MB / 0.948 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.002147/2.295, allocations: 1.244 MB / 1.661 GB, free: 195 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/2.295, allocations: 7.125 kB / 1.661 GB, free: 195 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/2.295, allocations: 119.2 kB / 1.661 GB, free: 194.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/2.296, allocations: 0.67 MB / 1.661 GB, free: 194.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/2.296, allocations: 17.56 kB / 1.661 GB, free: 194.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/2.296, allocations: 44.28 kB / 1.661 GB, free: 194.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006001/2.297, allocations: 399.7 kB / 1.662 GB, free: 194.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007638/2.298, allocations: 0.5748 MB / 1.662 GB, free: 194.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/2.298, allocations: 0 / 1.662 GB, free: 194.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/2.298, allocations: 3.25 kB / 1.662 GB, free: 194.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/2.298, allocations: 19.31 kB / 1.662 GB, free: 194.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/2.301, allocations: 2.466 MB / 1.665 GB, free: 193.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004443/2.301, allocations: 333.6 kB / 1.665 GB, free: 193.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/2.301, allocations: 189.3 kB / 1.665 GB, free: 193.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000236/2.301, allocations: 344 kB / 1.666 GB, free: 192.8 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003481/2.302, allocations: 325.7 kB / 1.666 GB, free: 192.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 1.764e-06/2.302, allocations: 0 / 1.666 GB, free: 192.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.001271/2.303, allocations: 0.5502 MB / 1.667 GB, free: 192.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/2.303, allocations: 246.1 kB / 1.667 GB, free: 192.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/2.304, allocations: 0.5855 MB / 1.667 GB, free: 192.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/2.304, allocations: 36.72 kB / 1.667 GB, free: 192.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/2.304, allocations: 307.9 kB / 1.668 GB, free: 191.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.486e-05/2.304, allocations: 110.7 kB / 1.668 GB, free: 191.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/2.304, allocations: 0 / 1.668 GB, free: 191.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.201e-05/2.304, allocations: 331.1 kB / 1.668 GB, free: 191.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/2.304, allocations: 191.3 kB / 1.668 GB, free: 191.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/2.305, allocations: 379 kB / 1.669 GB, free: 191.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/2.306, allocations: 333.6 kB / 1.669 GB, free: 191.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/2.306, allocations: 3.844 kB / 1.669 GB, free: 191.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00128/2.307, allocations: 0.7005 MB / 1.67 GB, free: 191.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001664/2.307, allocations: 1.051 MB / 1.671 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/2.307, allocations: 7.188 kB / 1.671 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/2.307, allocations: 3.875 kB / 1.671 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009522/2.308, allocations: 166.3 kB / 1.671 GB, free: 190.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007591/2.309, allocations: 1.806 MB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006998/2.309, allocations: 107.5 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/2.31, allocations: 38.72 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/2.31, allocations: 6.5 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001119/2.311, allocations: 0.5683 MB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/2.311, allocations: 3.906 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.613e-06/2.311, allocations: 7.75 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/2.311, allocations: 136.5 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/2.311, allocations: 3.281 kB / 1.673 GB, free: 188.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/2.312, allocations: 104.2 kB / 1.674 GB, free: 188.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/2.312, allocations: 30.88 kB / 1.674 GB, free: 188.3 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.000148/2.312, allocations: 163 kB / 1.674 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.757e-05/2.312, allocations: 82.22 kB / 1.674 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/2.314, allocations: 0.6671 MB / 1.674 GB, free: 188.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/2.314, allocations: 7.469 kB / 1.674 GB, free: 188.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/2.314, allocations: 0 / 1.674 GB, free: 188.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/2.314, allocations: 6.578 kB / 1.674 GB, free: 188.1 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/2.316, allocations: 1.472 MB / 1.676 GB, free: 187.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/2.316, allocations: 0 / 1.676 GB, free: 187.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/2.316, allocations: 108 kB / 1.676 GB, free: 187.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/2.316, allocations: 0 / 1.676 GB, free: 187.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/2.316, allocations: 13.48 kB / 1.676 GB, free: 187.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005479/2.317, allocations: 1.782 MB / 1.678 GB, free: 185.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/2.317, allocations: 0 / 1.678 GB, free: 185.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001452/2.318, allocations: 1.153 MB / 1.679 GB, free: 185.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/2.318, allocations: 228.7 kB / 1.679 GB, free: 185.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/2.319, allocations: 7.125 kB / 1.679 GB, free: 185.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/2.319, allocations: 76.44 kB / 1.679 GB, free: 185.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/2.319, allocations: 45.98 kB / 1.679 GB, free: 185.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/2.319, allocations: 18.94 kB / 1.679 GB, free: 185.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.000499/2.32, allocations: 456.2 kB / 1.68 GB, free: 185.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001447/2.321, allocations: 493.1 kB / 1.68 GB, free: 185.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.0008406/2.322, allocations: 485.4 kB / 1.681 GB, free: 185 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001582/2.324, allocations: 0.8416 MB / 1.681 GB, free: 184.9 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/2.324, allocations: 0 / 1.681 GB, free: 184.9 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000468/2.324, allocations: 303.6 kB / 1.682 GB, free: 184.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/2.326, allocations: 302 kB / 1.682 GB, free: 184.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/2.328, allocations: 1.052 MB / 1.683 GB, free: 184.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000522/2.328, allocations: 1.09 MB / 1.684 GB, free: 183.8 MB / 0.948 GB Notification: Performance of SimCode: time 2.5e-07/2.328, allocations: 0 / 1.684 GB, free: 183.8 MB / 0.948 GB Notification: Performance of Templates: time 0.02644/2.355, allocations: 17.38 MB / 1.701 GB, free: 183.1 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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 & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)