Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.157/2.157, allocations: 387.2 MB / 394.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 181.2 kB / 487 MB, free: 5.32 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.3 MB / 0.7819 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 95.34 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6551/0.6562, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.9592, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.142/2.101, allocations: 430.4 MB / 1.626 GB, free: 9.199 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004003/2.102, allocations: 100.9 kB / 1.626 GB, free: 9.148 MB / 1.057 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 4.177/6.279, allocations: 0.9969 GB / 2.623 GB, free: 164 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/6.279, allocations: 8.375 kB / 2.623 GB, free: 164 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/6.281, allocations: 330.5 kB / 2.623 GB, free: 163.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007602/6.288, allocations: 2.482 MB / 2.625 GB, free: 163.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.831e-05/6.288, allocations: 47.53 kB / 2.625 GB, free: 163.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006815/6.289, allocations: 107.6 kB / 2.625 GB, free: 163.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002843/6.292, allocations: 0.9947 MB / 2.626 GB, free: 163.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/6.295, allocations: 1.313 MB / 2.628 GB, free: 163.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.241e-05/6.295, allocations: 0.75 kB / 2.628 GB, free: 163.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002629/6.296, allocations: 3.688 kB / 2.628 GB, free: 163.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-05/6.296, allocations: 37.75 kB / 2.628 GB, free: 163.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/6.309, allocations: 8.048 MB / 2.636 GB, free: 159.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/6.31, allocations: 414.1 kB / 2.636 GB, free: 159.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/6.31, allocations: 312.7 kB / 2.636 GB, free: 159.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005512/6.311, allocations: 0.7528 MB / 2.637 GB, free: 158.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/6.311, allocations: 41.19 kB / 2.637 GB, free: 158.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 2.555e-06/6.311, allocations: 0 / 2.637 GB, free: 158.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.002127/6.313, allocations: 0.7296 MB / 2.638 GB, free: 158.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/6.313, allocations: 65.59 kB / 2.638 GB, free: 158.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004057/6.317, allocations: 1.718 MB / 2.64 GB, free: 158 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000294/6.317, allocations: 29.39 kB / 2.64 GB, free: 158 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008989/6.318, allocations: 0.7519 MB / 2.64 GB, free: 157.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/6.319, allocations: 208.7 kB / 2.641 GB, free: 157.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/6.319, allocations: 0 / 2.641 GB, free: 157.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001145/6.319, allocations: 345.4 kB / 2.641 GB, free: 157.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006192/6.319, allocations: 308.5 kB / 2.641 GB, free: 157.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009424/6.32, allocations: 0.7624 MB / 2.642 GB, free: 156.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/6.321, allocations: 463.4 kB / 2.642 GB, free: 156.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.377e-06/6.321, allocations: 0 / 2.642 GB, free: 156.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00273/6.324, allocations: 1.13 MB / 2.643 GB, free: 156.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006986/6.325, allocations: 3.153 MB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.5e-05/6.325, allocations: 7.781 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.202e-05/6.325, allocations: 14.97 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/6.326, allocations: 259.9 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-05/6.326, allocations: 20.12 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002503/6.329, allocations: 203.7 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/6.329, allocations: 55.48 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/6.329, allocations: 3.969 kB / 2.647 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001783/6.331, allocations: 0.8616 MB / 2.648 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/6.331, allocations: 7.719 kB / 2.648 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/6.331, allocations: 18.56 kB / 2.648 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009494/6.332, allocations: 255.2 kB / 2.648 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.248e-05/6.332, allocations: 20.78 kB / 2.648 GB, free: 153.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/6.334, allocations: 172.2 kB / 2.648 GB, free: 153.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/6.334, allocations: 51.08 kB / 2.648 GB, free: 153.1 MB / 1.151 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.0003416/6.335, allocations: 137.8 kB / 2.649 GB, free: 153 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007622/6.335, allocations: 211.8 kB / 2.649 GB, free: 152.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/6.338, allocations: 0.8578 MB / 2.65 GB, free: 152.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/6.338, allocations: 12.78 kB / 2.65 GB, free: 152.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/6.338, allocations: 0 / 2.65 GB, free: 152.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/6.339, allocations: 0.6594 MB / 2.65 GB, free: 152.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00665/6.346, allocations: 2.439 MB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/6.346, allocations: 0 / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006964/6.346, allocations: 147.8 kB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.08e-05/6.347, allocations: 6.812 kB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-05/6.347, allocations: 19.31 kB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/6.347, allocations: 4.594 kB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/6.347, allocations: 1.969 kB / 2.653 GB, free: 152.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002705/6.349, allocations: 1.291 MB / 2.654 GB, free: 152 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003135/6.352, allocations: 2.143 MB / 2.656 GB, free: 151.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/6.354, allocations: 440.9 kB / 2.657 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007298/6.355, allocations: 3.438 kB / 2.657 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002037/6.357, allocations: 157.1 kB / 2.657 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/6.357, allocations: 44.33 kB / 2.657 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/6.357, allocations: 32.67 kB / 2.657 GB, free: 151 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.00298/6.36, allocations: 1.266 MB / 2.658 GB, free: 150.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.008012/6.368, allocations: 1.557 MB / 2.66 GB, free: 150.6 MB / 1.151 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.002655/6.371, allocations: 1.198 MB / 2.661 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002775/6.374, allocations: 1.331 MB / 2.662 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/6.374, allocations: 0 / 2.662 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005301/6.374, allocations: 310.1 kB / 2.662 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007152/6.381, allocations: 1.227 MB / 2.664 GB, free: 150.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008462/6.39, allocations: 2.881 MB / 2.666 GB, free: 149.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002831/6.393, allocations: 1.839 MB / 2.668 GB, free: 148.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.272e-06/6.393, allocations: 0 / 2.668 GB, free: 148.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)