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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.977/1.977, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.0009958/0.0009959, allocations: 185.2 kB / 487 MB, free: 5.344 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.256/1.256, allocations: 221.3 MB / 0.7819 GB, free: 1.32 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.0008723/0.0008723, allocations: 86 kB / 0.9213 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.585e-06/7.605e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2365, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8704/1.107, allocations: 430.4 MB / 1.625 GB, free: 9.285 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/1.107, allocations: 102.6 kB / 1.626 GB, free: 9.234 MB / 1.057 GB Notification: Performance of FrontEnd: time 3.365/4.472, allocations: 0.9943 GB / 2.62 GB, free: 166.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003073/4.473, allocations: 84.83 kB / 2.62 GB, free: 166.8 MB / 1.151 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.006347/4.479, allocations: 2.562 MB / 2.623 GB, free: 166.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/4.479, allocations: 9.938 kB / 2.623 GB, free: 166.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/4.48, allocations: 325.6 kB / 2.623 GB, free: 166 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005189/4.486, allocations: 2.492 MB / 2.625 GB, free: 165.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/4.486, allocations: 48.31 kB / 2.625 GB, free: 165.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/4.486, allocations: 104.5 kB / 2.625 GB, free: 165.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00184/4.488, allocations: 0.9914 MB / 2.626 GB, free: 165.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/4.49, allocations: 1.316 MB / 2.628 GB, free: 165.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/4.49, allocations: 5.844 kB / 2.628 GB, free: 165.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/4.49, allocations: 0 / 2.628 GB, free: 165.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.971e-05/4.49, allocations: 38.78 kB / 2.628 GB, free: 165.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01068/4.501, allocations: 8.035 MB / 2.636 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006637/4.501, allocations: 404.8 kB / 2.636 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000448/4.502, allocations: 320.2 kB / 2.636 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006632/4.502, allocations: 0.7552 MB / 2.637 GB, free: 160.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/4.502, allocations: 38.16 kB / 2.637 GB, free: 160.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 4.027e-06/4.503, allocations: 2.656 kB / 2.637 GB, free: 160.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.001957/4.504, allocations: 0.7342 MB / 2.638 GB, free: 160.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/4.505, allocations: 55.62 kB / 2.638 GB, free: 160.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/4.507, allocations: 1.721 MB / 2.639 GB, free: 160.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001532/4.507, allocations: 28.86 kB / 2.64 GB, free: 160.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006654/4.508, allocations: 0.7693 MB / 2.64 GB, free: 159.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/4.508, allocations: 205 kB / 2.64 GB, free: 159.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/4.508, allocations: 0 / 2.64 GB, free: 159.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001173/4.508, allocations: 349.4 kB / 2.641 GB, free: 159.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004984/4.509, allocations: 306.8 kB / 2.641 GB, free: 159.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008226/4.51, allocations: 0.7618 MB / 2.642 GB, free: 158.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009136/4.511, allocations: 459.6 kB / 2.642 GB, free: 158.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/4.511, allocations: 3.438 kB / 2.642 GB, free: 158.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001968/4.513, allocations: 1.13 MB / 2.643 GB, free: 158.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007115/4.513, allocations: 3.157 MB / 2.646 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/4.513, allocations: 6.469 kB / 2.646 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.317e-05/4.513, allocations: 18.94 kB / 2.646 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/4.514, allocations: 257.9 kB / 2.647 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/4.514, allocations: 18.41 kB / 2.647 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/4.516, allocations: 200.6 kB / 2.647 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.54e-05/4.516, allocations: 51.41 kB / 2.647 GB, free: 155.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.603e-06/4.516, allocations: 3.875 kB / 2.647 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001352/4.518, allocations: 0.8583 MB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/4.518, allocations: 9.969 kB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/4.518, allocations: 17.66 kB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008977/4.519, allocations: 257.8 kB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/4.519, allocations: 19.75 kB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/4.52, allocations: 170.7 kB / 2.648 GB, free: 155.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/4.52, allocations: 50.59 kB / 2.648 GB, free: 155.3 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.0002514/4.521, allocations: 141 kB / 2.648 GB, free: 155.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/4.521, allocations: 215.4 kB / 2.649 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/4.523, allocations: 0.858 MB / 2.65 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/4.523, allocations: 12.19 kB / 2.65 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/4.523, allocations: 0 / 2.65 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008682/4.524, allocations: 0.6621 MB / 2.65 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/4.528, allocations: 2.438 MB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/4.528, allocations: 0 / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/4.528, allocations: 151.4 kB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/4.528, allocations: 3.938 kB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/4.529, allocations: 9.812 kB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/4.529, allocations: 3.25 kB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/4.529, allocations: 6.531 kB / 2.653 GB, free: 154.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001558/4.53, allocations: 1.293 MB / 2.654 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008483/4.531, allocations: 443.4 kB / 2.654 GB, free: 153.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/4.531, allocations: 2.188 kB / 2.654 GB, free: 153.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/4.533, allocations: 158.9 kB / 2.655 GB, free: 153.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/4.533, allocations: 41.97 kB / 2.655 GB, free: 153.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/4.533, allocations: 33.62 kB / 2.655 GB, free: 153.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001623/4.534, allocations: 1.266 MB / 2.656 GB, free: 153.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003636/4.538, allocations: 1.23 MB / 2.657 GB, free: 153.5 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.002107/4.54, allocations: 1.206 MB / 2.658 GB, free: 153.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002142/4.542, allocations: 1.329 MB / 2.66 GB, free: 153.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/4.542, allocations: 2.562 kB / 2.66 GB, free: 153.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003622/4.543, allocations: 312.3 kB / 2.66 GB, free: 153.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006023/4.549, allocations: 1.222 MB / 2.661 GB, free: 153.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005871/4.555, allocations: 2.865 MB / 2.664 GB, free: 152.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/4.556, allocations: 1.834 MB / 2.666 GB, free: 151.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.663e-06/4.556, allocations: 1.125 kB / 2.666 GB, free: 151.7 MB / 1.151 GB Notification: Performance of Templates: time 0.07944/4.635, allocations: 48.8 MB / 2.713 GB, free: 150.7 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches