Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [: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.465/1.465, allocations: 289.8 MB / 297.1 MB, free: 6.648 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.001104/0.001104, allocations: 177.3 kB / 366.3 MB, free: 1.965 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.189/1.189, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.0009053/0.0009052, allocations: 83.67 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.722e-06/6.742e-06, allocations: 0 / 0.859 GB, free: 13.33 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4902/0.4902, allocations: 116.3 MB / 0.9726 GB, free: 68.82 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7042/1.194, allocations: 432.5 MB / 1.395 GB, free: 56.7 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/1.195, allocations: 99.66 kB / 1.395 GB, free: 56.64 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.051/4.246, allocations: 0.9712 GB / 2.366 GB, free: 131.8 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.000267/4.246, allocations: 82.12 kB / 2.366 GB, free: 131.8 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004612/4.251, allocations: 2.537 MB / 2.369 GB, free: 130.9 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/4.251, allocations: 7.094 kB / 2.369 GB, free: 130.9 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007453/4.252, allocations: 323.8 kB / 2.369 GB, free: 130.8 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/4.256, allocations: 2.425 MB / 2.371 GB, free: 130.4 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/4.256, allocations: 57 kB / 2.371 GB, free: 130.4 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/4.256, allocations: 103.2 kB / 2.372 GB, free: 130.4 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001685/4.258, allocations: 0.9899 MB / 2.373 GB, free: 130.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001929/4.26, allocations: 1.313 MB / 2.374 GB, free: 130.2 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.19e-05/4.26, allocations: 9.25 kB / 2.374 GB, free: 130.2 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/4.26, allocations: 0 / 2.374 GB, free: 130.2 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.06e-05/4.26, allocations: 44.94 kB / 2.374 GB, free: 130.2 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008182/4.268, allocations: 8.021 MB / 2.382 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005312/4.269, allocations: 409.9 kB / 2.382 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/4.269, allocations: 315.8 kB / 2.382 GB, free: 126.2 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000534/4.27, allocations: 0.7572 MB / 2.383 GB, free: 125.4 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/4.27, allocations: 41.25 kB / 2.383 GB, free: 125.4 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=60): time 2.685e-06/4.27, allocations: 0 / 2.383 GB, free: 125.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=60): time 0.001568/4.272, allocations: 0.7345 MB / 2.384 GB, free: 125.2 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/4.272, allocations: 59.78 kB / 2.384 GB, free: 125.2 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002096/4.274, allocations: 1.678 MB / 2.386 GB, free: 124.9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/4.274, allocations: 29.52 kB / 2.386 GB, free: 124.9 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004457/4.274, allocations: 0.7457 MB / 2.386 GB, free: 124.5 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/4.274, allocations: 201.8 kB / 2.387 GB, free: 124.4 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/4.275, allocations: 0 / 2.387 GB, free: 124.4 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.237e-05/4.275, allocations: 356.2 kB / 2.387 GB, free: 124.1 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/4.275, allocations: 307.3 kB / 2.387 GB, free: 124.1 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006437/4.276, allocations: 0.7598 MB / 2.388 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/4.276, allocations: 461.2 kB / 2.388 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/4.277, allocations: 3.031 kB / 2.388 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001741/4.278, allocations: 1.123 MB / 2.389 GB, free: 123.4 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005554/4.279, allocations: 3.145 MB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/4.279, allocations: 7.688 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/4.279, allocations: 16.25 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/4.28, allocations: 257.2 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/4.28, allocations: 23.34 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/4.282, allocations: 195.2 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.652e-05/4.282, allocations: 60.12 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 7.284e-06/4.282, allocations: 5.594 kB / 2.393 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001367/4.283, allocations: 0.861 MB / 2.394 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/4.283, allocations: 12.16 kB / 2.394 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/4.283, allocations: 14.16 kB / 2.394 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009129/4.284, allocations: 250.8 kB / 2.394 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/4.284, allocations: 23.95 kB / 2.394 GB, free: 120 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/4.286, allocations: 173.9 kB / 2.394 GB, free: 119.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-05/4.286, allocations: 53.78 kB / 2.394 GB, free: 119.9 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000226/4.286, allocations: 135.1 kB / 2.395 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/4.286, allocations: 208.8 kB / 2.395 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/4.288, allocations: 0.8497 MB / 2.396 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/4.288, allocations: 10.89 kB / 2.396 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/4.288, allocations: 3.5 kB / 2.396 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008702/4.289, allocations: 0.6608 MB / 2.396 GB, free: 119.4 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004066/4.293, allocations: 2.414 MB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/4.293, allocations: 3.906 kB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005992/4.294, allocations: 148.3 kB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/4.294, allocations: 3.625 kB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.195e-05/4.294, allocations: 13.39 kB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/4.294, allocations: 8.062 kB / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/4.294, allocations: 0 / 2.399 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001608/4.295, allocations: 1.291 MB / 2.4 GB, free: 118.7 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008175/4.296, allocations: 430.2 kB / 2.4 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002731/4.296, allocations: 3.844 kB / 2.4 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/4.298, allocations: 151.7 kB / 2.401 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.277e-05/4.298, allocations: 41.28 kB / 2.401 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/4.298, allocations: 35.44 kB / 2.401 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001582/4.299, allocations: 1.232 MB / 2.402 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.003464/4.303, allocations: 1.221 MB / 2.403 GB, free: 118.1 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001937/4.305, allocations: 1.197 MB / 2.404 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002008/4.307, allocations: 1.322 MB / 2.406 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/4.307, allocations: 6.938 kB / 2.406 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0003527/4.307, allocations: 305.2 kB / 2.406 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00621/4.313, allocations: 1.239 MB / 2.407 GB, free: 117.8 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/4.32, allocations: 2.841 MB / 2.41 GB, free: 117 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/4.321, allocations: 1.818 MB / 2.412 GB, free: 116.3 MB / 0.9636 GB Notification: Performance of SimCode: time 1.423e-06/4.321, allocations: 0 / 2.412 GB, free: 116.3 MB / 0.9636 GB Notification: Performance of Templates: time 0.07705/4.398, allocations: 48.77 MB / 2.459 GB, free: 114.5 MB / 0.9636 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)