Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.938/1.938, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.0009923/0.0009925, allocations: 193.2 kB / 490.8 MB, free: 1.961 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.307/1.307, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009629/0.000963, allocations: 85.81 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.011e-06/6.031e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2553, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8786/1.134, allocations: 431.1 MB / 1.633 GB, free: 0.6328 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/1.134, allocations: 96.44 kB / 1.633 GB, free: 0.582 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.929/4.063, allocations: 0.9942 GB / 2.627 GB, free: 8.91 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0004935/4.064, allocations: 83.84 kB / 2.627 GB, free: 8.828 MB / 1.182 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.007818/4.071, allocations: 2.556 MB / 2.629 GB, free: 6.215 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/4.071, allocations: 12.03 kB / 2.629 GB, free: 6.203 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001907/4.073, allocations: 324.2 kB / 2.63 GB, free: 5.883 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007541/4.081, allocations: 2.493 MB / 2.632 GB, free: 3.32 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.885e-05/4.081, allocations: 51.91 kB / 2.632 GB, free: 3.27 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005525/4.082, allocations: 104 kB / 2.632 GB, free: 3.168 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002645/4.084, allocations: 0.9861 MB / 2.633 GB, free: 2.18 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/4.087, allocations: 1.313 MB / 2.635 GB, free: 0.8047 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/4.088, allocations: 4 kB / 2.635 GB, free: 0.8008 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/4.088, allocations: 0 / 2.635 GB, free: 0.8008 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.253e-05/4.088, allocations: 44 kB / 2.635 GB, free: 0.7578 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/4.101, allocations: 8.037 MB / 2.643 GB, free: 8.262 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/4.101, allocations: 415.8 kB / 2.643 GB, free: 7.852 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/4.102, allocations: 310.8 kB / 2.643 GB, free: 7.539 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007089/4.102, allocations: 0.7601 MB / 2.644 GB, free: 6.609 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/4.102, allocations: 39.06 kB / 2.644 GB, free: 6.562 MB / 1.198 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/4.102, allocations: 0 / 2.644 GB, free: 6.562 MB / 1.198 GB Notification: Performance of matching and sorting (n=60): time 0.001916/4.104, allocations: 0.7361 MB / 2.645 GB, free: 5.82 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/4.104, allocations: 59.81 kB / 2.645 GB, free: 5.75 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003145/4.108, allocations: 1.723 MB / 2.646 GB, free: 4.008 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001916/4.108, allocations: 29.7 kB / 2.646 GB, free: 3.973 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006782/4.108, allocations: 0.7502 MB / 2.647 GB, free: 3.203 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003057/4.109, allocations: 205 kB / 2.647 GB, free: 3 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/4.109, allocations: 0 / 2.647 GB, free: 3 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.000131/4.109, allocations: 349.9 kB / 2.648 GB, free: 2.652 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/4.11, allocations: 310.6 kB / 2.648 GB, free: 2.348 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008303/4.11, allocations: 0.7587 MB / 2.649 GB, free: 1.391 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/4.111, allocations: 458.7 kB / 2.649 GB, free: 0.9453 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/4.111, allocations: 0 / 2.649 GB, free: 0.9453 MB / 1.198 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.543/4.654, allocations: 1.135 MB / 2.65 GB, free: 316.9 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005973/4.655, allocations: 3.153 MB / 2.653 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/4.655, allocations: 7.344 kB / 2.653 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.402e-05/4.655, allocations: 15.09 kB / 2.653 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/4.656, allocations: 264.8 kB / 2.654 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/4.656, allocations: 18.69 kB / 2.654 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/4.659, allocations: 195 kB / 2.654 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/4.659, allocations: 53.05 kB / 2.654 GB, free: 313.5 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 8.055e-06/4.659, allocations: 3.938 kB / 2.654 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00149/4.66, allocations: 0.8567 MB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/4.66, allocations: 10.62 kB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/4.66, allocations: 14.38 kB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009088/4.661, allocations: 251.4 kB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/4.661, allocations: 21.84 kB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/4.663, allocations: 172.5 kB / 2.655 GB, free: 313.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-05/4.663, allocations: 50.02 kB / 2.655 GB, free: 313.5 MB / 1.198 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.0002151/4.663, allocations: 140.9 kB / 2.655 GB, free: 313.4 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/4.663, allocations: 209.3 kB / 2.656 GB, free: 313.4 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/4.665, allocations: 0.8593 MB / 2.656 GB, free: 313.4 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/4.665, allocations: 11.31 kB / 2.656 GB, free: 313.4 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/4.665, allocations: 0 / 2.656 GB, free: 313.4 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008591/4.666, allocations: 0.6615 MB / 2.657 GB, free: 313.2 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003663/4.67, allocations: 2.431 MB / 2.659 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/4.67, allocations: 4.781 kB / 2.659 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/4.67, allocations: 148.4 kB / 2.66 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/4.67, allocations: 7.344 kB / 2.66 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.971e-05/4.67, allocations: 12.33 kB / 2.66 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/4.67, allocations: 0 / 2.66 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/4.67, allocations: 6.547 kB / 2.66 GB, free: 312.9 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001476/4.672, allocations: 1.293 MB / 2.661 GB, free: 312.5 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/4.673, allocations: 442.2 kB / 2.661 GB, free: 312.3 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/4.673, allocations: 7.078 kB / 2.661 GB, free: 312.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/4.674, allocations: 155.1 kB / 2.661 GB, free: 312.3 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.55e-05/4.674, allocations: 48.11 kB / 2.662 GB, free: 312.3 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.039e-05/4.674, allocations: 37.88 kB / 2.662 GB, free: 312.3 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.001504/4.676, allocations: 1.27 MB / 2.663 GB, free: 312.2 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.003278/4.679, allocations: 1.217 MB / 2.664 GB, free: 312.1 MB / 1.198 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.001891/4.681, allocations: 1.189 MB / 2.665 GB, free: 311.9 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.001885/4.683, allocations: 1.32 MB / 2.666 GB, free: 311.9 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/4.683, allocations: 0 / 2.666 GB, free: 311.9 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003724/4.683, allocations: 316 kB / 2.667 GB, free: 311.9 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005853/4.689, allocations: 1.234 MB / 2.668 GB, free: 311.9 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005674/4.695, allocations: 2.875 MB / 2.671 GB, free: 311.1 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/4.696, allocations: 1.837 MB / 2.673 GB, free: 310.4 MB / 1.198 GB Notification: Performance of SimCode: time 9.72e-07/4.696, allocations: 0 / 2.673 GB, free: 310.4 MB / 1.198 GB Notification: Performance of Templates: time 0.07272/4.769, allocations: 48.79 MB / 2.72 GB, free: 309.4 MB / 1.198 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches