Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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.454/1.454, allocations: 289.8 MB / 297.1 MB, free: 6.688 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.001157/0.001157, allocations: 177.3 kB / 366.3 MB, free: 2.008 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.343/1.343, allocations: 205.1 MB / 0.6256 GB, free: 5.828 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.0009399/0.0009399, allocations: 91.84 kB / 0.7395 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.843e-06/6.872e-06, allocations: 0 / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5791/0.5791, allocations: 116.3 MB / 0.9726 GB, free: 68.31 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7896/1.369, allocations: 401.5 MB / 1.365 GB, free: 83.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/1.369, allocations: 97.19 kB / 1.365 GB, free: 83.02 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.2/2.57, allocations: 427.1 MB / 1.782 GB, free: 172.1 MB / 0.948 GB Notification: Performance of Transformations before backend: time 8.988e-05/2.57, allocations: 44.03 kB / 1.782 GB, free: 172 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002022/2.572, allocations: 1.294 MB / 1.783 GB, free: 170.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/2.572, allocations: 12.03 kB / 1.783 GB, free: 170.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002851/2.572, allocations: 154.5 kB / 1.783 GB, free: 170.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/2.574, allocations: 0.847 MB / 1.784 GB, free: 169.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/2.574, allocations: 16 kB / 1.784 GB, free: 169.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/2.574, allocations: 80 kB / 1.784 GB, free: 169.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006171/2.574, allocations: 402.4 kB / 1.785 GB, free: 169.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000654/2.575, allocations: 0.5237 MB / 1.785 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/2.575, allocations: 4 kB / 1.785 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/2.575, allocations: 0 / 1.785 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/2.575, allocations: 12 kB / 1.785 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/2.578, allocations: 2.928 MB / 1.788 GB, free: 165.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/2.579, allocations: 303.5 kB / 1.788 GB, free: 165.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/2.579, allocations: 137.4 kB / 1.788 GB, free: 165.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002242/2.579, allocations: 348.5 kB / 1.789 GB, free: 164.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/2.579, allocations: 50.69 kB / 1.789 GB, free: 164.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/2.579, allocations: 0 / 1.789 GB, free: 164.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.00123/2.581, allocations: 494.7 kB / 1.789 GB, free: 164.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.562e-05/2.581, allocations: 55.41 kB / 1.789 GB, free: 164.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/2.581, allocations: 0.6273 MB / 1.79 GB, free: 163.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001114/2.581, allocations: 33.7 kB / 1.79 GB, free: 163.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/2.582, allocations: 410 kB / 1.79 GB, free: 163 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 5.575e-05/2.582, allocations: 106.4 kB / 1.79 GB, free: 162.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/2.582, allocations: 0 / 1.79 GB, free: 162.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.03e-05/2.582, allocations: 334 kB / 1.791 GB, free: 162.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/2.582, allocations: 157.3 kB / 1.791 GB, free: 162.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/2.583, allocations: 1.412 MB / 1.792 GB, free: 160.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008205/2.584, allocations: 391.9 kB / 1.793 GB, free: 160.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/2.584, allocations: 0 / 1.793 GB, free: 160.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00133/2.585, allocations: 0.671 MB / 1.793 GB, free: 159.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/2.585, allocations: 0.8018 MB / 1.794 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/2.585, allocations: 8 kB / 1.794 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/2.585, allocations: 7.906 kB / 1.794 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/2.587, allocations: 219.4 kB / 1.794 GB, free: 158.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/2.588, allocations: 2.997 MB / 1.797 GB, free: 155.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/2.591, allocations: 0.7654 MB / 1.798 GB, free: 154.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/2.591, allocations: 27.98 kB / 1.798 GB, free: 154.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.126e-06/2.591, allocations: 8 kB / 1.798 GB, free: 154.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001074/2.592, allocations: 0.4946 MB / 1.798 GB, free: 154 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/2.592, allocations: 0 / 1.798 GB, free: 154 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.702e-06/2.592, allocations: 8 kB / 1.798 GB, free: 154 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/2.593, allocations: 164 kB / 1.799 GB, free: 153.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/2.593, allocations: 4 kB / 1.799 GB, free: 153.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003077/2.596, allocations: 0.7538 MB / 1.799 GB, free: 153.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.101e-05/2.596, allocations: 23.98 kB / 1.799 GB, free: 153.1 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001993/2.596, allocations: 133.9 kB / 1.8 GB, free: 153 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/2.596, allocations: 82.88 kB / 1.8 GB, free: 152.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/2.598, allocations: 0.5694 MB / 1.8 GB, free: 152.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/2.598, allocations: 4 kB / 1.8 GB, free: 152.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/2.598, allocations: 7.906 kB / 1.8 GB, free: 152.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/2.598, allocations: 3.984 kB / 1.8 GB, free: 152.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/2.6, allocations: 1.237 MB / 1.801 GB, free: 151 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/2.6, allocations: 0 / 1.801 GB, free: 151 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/2.6, allocations: 127.9 kB / 1.801 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/2.6, allocations: 4 kB / 1.801 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/2.6, allocations: 8 kB / 1.801 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007772/2.601, allocations: 2.961 MB / 1.804 GB, free: 147.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/2.601, allocations: 0 / 1.804 GB, free: 147.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009995/2.602, allocations: 0.6656 MB / 1.805 GB, free: 147.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/2.602, allocations: 215.8 kB / 1.805 GB, free: 146.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/2.602, allocations: 0 / 1.805 GB, free: 146.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000548/2.603, allocations: 71.77 kB / 1.805 GB, free: 146.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/2.603, allocations: 19.97 kB / 1.805 GB, free: 146.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/2.603, allocations: 16 kB / 1.805 GB, free: 146.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0004135/2.603, allocations: 476 kB / 1.806 GB, free: 146.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0015/2.605, allocations: 0.5885 MB / 1.806 GB, free: 145.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007517/2.606, allocations: 0.5239 MB / 1.807 GB, free: 145.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002052/2.608, allocations: 0.7755 MB / 1.808 GB, free: 144.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.608, allocations: 4 kB / 1.808 GB, free: 144.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000473/2.608, allocations: 220.9 kB / 1.808 GB, free: 144.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/2.61, allocations: 387.3 kB / 1.808 GB, free: 143.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/2.612, allocations: 1.051 MB / 1.809 GB, free: 142.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000485/2.612, allocations: 1.128 MB / 1.81 GB, free: 141.6 MB / 0.948 GB Notification: Performance of SimCode: time 4e-07/2.612, allocations: 0 / 1.81 GB, free: 141.6 MB / 0.948 GB Notification: Performance of Templates: time 0.0356/2.648, allocations: 26.7 MB / 1.836 GB, free: 115.2 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)