Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.1-maint.8.0.x/package.mo): time 1.415/1.415, allocations: 285.5 MB / 292.8 MB, free: 10.4 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.001239/0.001239, allocations: 181.2 kB / 361.1 MB, free: 7.059 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.18/1.18, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.00095/0.00095, allocations: 86.58 kB / 0.7325 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2075/0.2085, allocations: 121.5 MB / 0.8511 GB, free: 2.84 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.7291, allocations: 115.3 MB / 0.9638 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7532/1.482, allocations: 431.5 MB / 1.385 GB, free: 130.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/1.483, allocations: 100.2 kB / 1.385 GB, free: 130.9 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 2.884/4.366, allocations: 0.9737 GB / 2.359 GB, free: 111.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/4.366, allocations: 9.781 kB / 2.359 GB, free: 111.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005787/4.367, allocations: 323.6 kB / 2.359 GB, free: 111.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/4.37, allocations: 2.43 MB / 2.362 GB, free: 111.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/4.37, allocations: 47.19 kB / 2.362 GB, free: 111.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/4.371, allocations: 107.1 kB / 2.362 GB, free: 111.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001458/4.372, allocations: 0.9943 MB / 2.363 GB, free: 111.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/4.374, allocations: 1.31 MB / 2.364 GB, free: 110.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/4.374, allocations: 5.25 kB / 2.364 GB, free: 110.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/4.374, allocations: 0 / 2.364 GB, free: 110.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/4.374, allocations: 45.48 kB / 2.364 GB, free: 110.9 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006427/4.38, allocations: 7.998 MB / 2.372 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/4.381, allocations: 425.1 kB / 2.372 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/4.381, allocations: 316.7 kB / 2.373 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003932/4.382, allocations: 0.7555 MB / 2.373 GB, free: 106.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/4.382, allocations: 42.19 kB / 2.373 GB, free: 106.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 1.653e-06/4.382, allocations: 2.469 kB / 2.373 GB, free: 106.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.001121/4.383, allocations: 0.7331 MB / 2.374 GB, free: 105.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.62e-05/4.383, allocations: 55.88 kB / 2.374 GB, free: 105.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/4.385, allocations: 1.673 MB / 2.376 GB, free: 105.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.938e-05/4.385, allocations: 29.58 kB / 2.376 GB, free: 105.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/4.385, allocations: 0.7522 MB / 2.377 GB, free: 105.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/4.385, allocations: 206.5 kB / 2.377 GB, free: 105.2 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/4.385, allocations: 0 / 2.377 GB, free: 105.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.664e-05/4.385, allocations: 346.9 kB / 2.377 GB, free: 104.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/4.386, allocations: 309.3 kB / 2.377 GB, free: 104.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005647/4.386, allocations: 0.765 MB / 2.378 GB, free: 104.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006927/4.387, allocations: 458.4 kB / 2.379 GB, free: 104.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/4.387, allocations: 5.484 kB / 2.379 GB, free: 104.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00153/4.388, allocations: 1.123 MB / 2.38 GB, free: 104.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003819/4.389, allocations: 3.152 MB / 2.383 GB, free: 100.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/4.389, allocations: 6.438 kB / 2.383 GB, free: 100.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/4.389, allocations: 13.72 kB / 2.383 GB, free: 100.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009029/4.39, allocations: 266.3 kB / 2.383 GB, free: 100.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/4.39, allocations: 17.66 kB / 2.383 GB, free: 100.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/4.391, allocations: 206.5 kB / 2.383 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/4.391, allocations: 54.64 kB / 2.383 GB, free: 100.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.959e-06/4.391, allocations: 3.188 kB / 2.383 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001222/4.392, allocations: 0.8555 MB / 2.384 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/4.392, allocations: 10.22 kB / 2.384 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/4.393, allocations: 20.62 kB / 2.384 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00085/4.393, allocations: 252.8 kB / 2.384 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/4.393, allocations: 20.75 kB / 2.384 GB, free: 100.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/4.395, allocations: 176.1 kB / 2.385 GB, free: 100.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.679e-05/4.395, allocations: 51.8 kB / 2.385 GB, free: 100.7 MB / 0.948 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.0001397/4.395, allocations: 133.7 kB / 2.385 GB, free: 100.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/4.395, allocations: 206.1 kB / 2.385 GB, free: 100.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/4.396, allocations: 0.8504 MB / 2.386 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/4.396, allocations: 10.7 kB / 2.386 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/4.396, allocations: 3.906 kB / 2.386 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007799/4.397, allocations: 0.6661 MB / 2.386 GB, free: 100.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/4.4, allocations: 2.412 MB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/4.4, allocations: 0 / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005407/4.401, allocations: 157.1 kB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/4.401, allocations: 3.844 kB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.573e-05/4.401, allocations: 7.547 kB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/4.401, allocations: 2.781 kB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/4.401, allocations: 7.406 kB / 2.389 GB, free: 99.91 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001335/4.402, allocations: 1.289 MB / 2.39 GB, free: 99.54 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001937/4.404, allocations: 2.128 MB / 2.392 GB, free: 98.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005207/4.405, allocations: 436.9 kB / 2.393 GB, free: 98.59 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/4.405, allocations: 6.844 kB / 2.393 GB, free: 98.59 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/4.406, allocations: 152.3 kB / 2.393 GB, free: 98.58 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/4.406, allocations: 40.23 kB / 2.393 GB, free: 98.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.582e-05/4.406, allocations: 35.78 kB / 2.393 GB, free: 98.58 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001328/4.407, allocations: 1.23 MB / 2.394 GB, free: 98.43 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004461/4.412, allocations: 1.547 MB / 2.396 GB, free: 98.23 MB / 0.948 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.001468/4.413, allocations: 1.204 MB / 2.397 GB, free: 97.95 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001463/4.415, allocations: 1.318 MB / 2.398 GB, free: 97.92 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/4.415, allocations: 2.688 kB / 2.398 GB, free: 97.92 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003172/4.415, allocations: 310.6 kB / 2.398 GB, free: 97.92 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004863/4.42, allocations: 1.236 MB / 2.4 GB, free: 97.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004066/4.424, allocations: 2.839 MB / 2.402 GB, free: 97.13 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/4.425, allocations: 1.825 MB / 2.404 GB, free: 96.39 MB / 0.948 GB Notification: Performance of SimCode: time 2.9e-07/4.425, allocations: 0 / 2.404 GB, free: 96.39 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)