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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.172/2.172, allocations: 387.1 MB / 399.7 MB, free: 9.426 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.001284/0.001284, allocations: 176.9 kB / 492.3 MB, free: 0.5977 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.489/1.489, allocations: 221.3 MB / 0.7872 GB, free: 12.91 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.0009046/0.0009043, allocations: 95.41 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.235e-05/4.252e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.27, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.389, allocations: 431.1 MB / 1.633 GB, free: 15.57 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/1.39, allocations: 102.7 kB / 1.634 GB, free: 15.52 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.174/4.563, allocations: 0.9943 GB / 2.628 GB, free: 15.54 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.735e-06/4.563, allocations: 0 / 2.628 GB, free: 15.54 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004054/4.564, allocations: 83.91 kB / 2.628 GB, free: 15.45 MB / 1.167 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.007535/4.571, allocations: 2.56 MB / 2.63 GB, free: 12.84 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/4.571, allocations: 12.03 kB / 2.63 GB, free: 12.82 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/4.573, allocations: 324.2 kB / 2.631 GB, free: 12.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006101/4.579, allocations: 2.473 MB / 2.633 GB, free: 9.961 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/4.579, allocations: 131 kB / 2.633 GB, free: 9.832 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003133/4.579, allocations: 172 kB / 2.633 GB, free: 9.664 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/4.582, allocations: 1.511 MB / 2.635 GB, free: 8.09 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/4.583, allocations: 4 kB / 2.635 GB, free: 8.086 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/4.583, allocations: 67.94 kB / 2.635 GB, free: 8.02 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.634e-05/4.583, allocations: 51.92 kB / 2.635 GB, free: 7.969 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001896/4.585, allocations: 1.038 MB / 2.636 GB, free: 6.926 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7742/5.359, allocations: 8.005 MB / 2.644 GB, free: 174.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/5.36, allocations: 435.5 kB / 2.644 GB, free: 174.2 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007421/5.361, allocations: 317.1 kB / 2.645 GB, free: 174.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007769/5.362, allocations: 0.7599 MB / 2.645 GB, free: 173.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/5.362, allocations: 42.78 kB / 2.645 GB, free: 173.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 4.609e-06/5.362, allocations: 0 / 2.645 GB, free: 173.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002977/5.365, allocations: 0.7451 MB / 2.646 GB, free: 173.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/5.365, allocations: 63.81 kB / 2.646 GB, free: 173.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00673/5.372, allocations: 2.056 MB / 2.648 GB, free: 173 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.000445/5.372, allocations: 51.17 kB / 2.648 GB, free: 173 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001615/5.374, allocations: 1.15 MB / 2.649 GB, free: 172.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004464/5.374, allocations: 219.3 kB / 2.65 GB, free: 172.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-05/5.374, allocations: 21.28 kB / 2.65 GB, free: 172.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001298/5.374, allocations: 350.6 kB / 2.65 GB, free: 172.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/5.375, allocations: 313.1 kB / 2.65 GB, free: 172.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/5.377, allocations: 0.7816 MB / 2.651 GB, free: 171.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/5.378, allocations: 453.7 kB / 2.651 GB, free: 171.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/5.378, allocations: 3.312 kB / 2.651 GB, free: 171.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.004086/5.382, allocations: 1.206 MB / 2.653 GB, free: 171.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007968/5.383, allocations: 3.206 MB / 2.656 GB, free: 168.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/5.383, allocations: 7.984 kB / 2.656 GB, free: 168.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.927e-05/5.383, allocations: 20.09 kB / 2.656 GB, free: 168.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/5.385, allocations: 258.3 kB / 2.656 GB, free: 168.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-05/5.385, allocations: 17.25 kB / 2.656 GB, free: 168.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004431/5.389, allocations: 281 kB / 2.656 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/5.39, allocations: 51.02 kB / 2.656 GB, free: 168.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/5.39, allocations: 3.812 kB / 2.656 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002833/5.393, allocations: 0.9551 MB / 2.657 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/5.393, allocations: 8.375 kB / 2.657 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.475e-05/5.393, allocations: 13.47 kB / 2.657 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/5.394, allocations: 256.7 kB / 2.657 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.012e-05/5.394, allocations: 18.34 kB / 2.658 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004107/5.399, allocations: 242 kB / 2.658 GB, free: 168.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/5.399, allocations: 52.19 kB / 2.658 GB, free: 168.2 MB / 1.167 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.0006008/5.399, allocations: 173.3 kB / 2.658 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/5.401, allocations: 241.2 kB / 2.658 GB, free: 167.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/5.404, allocations: 0.8915 MB / 2.659 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.519e-05/5.404, allocations: 8.422 kB / 2.659 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/5.404, allocations: 3.188 kB / 2.659 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001528/5.405, allocations: 0.6815 MB / 2.66 GB, free: 167.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008569/5.414, allocations: 2.648 MB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/5.414, allocations: 0 / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009113/5.415, allocations: 142.3 kB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/5.415, allocations: 6.562 kB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/5.415, allocations: 23.84 kB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.246e-05/5.415, allocations: 8.766 kB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/5.415, allocations: 3.703 kB / 2.662 GB, free: 167.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/5.418, allocations: 1.336 MB / 2.664 GB, free: 166.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/5.419, allocations: 472.6 kB / 2.664 GB, free: 166.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003285/5.419, allocations: 17.94 kB / 2.664 GB, free: 166.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001749/5.421, allocations: 161.5 kB / 2.664 GB, free: 166.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/5.421, allocations: 46.94 kB / 2.664 GB, free: 166.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/5.422, allocations: 31.75 kB / 2.664 GB, free: 166.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003725/5.425, allocations: 1.569 MB / 2.666 GB, free: 166.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 5.01e-07/5.425, allocations: 2.156 kB / 2.666 GB, free: 166.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005652/5.431, allocations: 1.213 MB / 2.667 GB, free: 166.4 MB / 1.167 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.002942/5.434, allocations: 1.238 MB / 2.668 GB, free: 166.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003177/5.437, allocations: 1.384 MB / 2.67 GB, free: 166.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/5.437, allocations: 1.312 kB / 2.67 GB, free: 166.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005506/5.438, allocations: 319.7 kB / 2.67 GB, free: 166.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009669/5.447, allocations: 1.492 MB / 2.672 GB, free: 166.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007072/5.454, allocations: 2.872 MB / 2.674 GB, free: 165.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/5.456, allocations: 1.649 MB / 2.676 GB, free: 164.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.004172/5.46, allocations: 0.7227 MB / 2.677 GB, free: 164.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003222/5.46, allocations: 133.5 kB / 2.677 GB, free: 164.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.193e-06/5.46, allocations: 0 / 2.677 GB, free: 164.6 MB / 1.167 GB Notification: Performance of Templates: time 0.1025/5.563, allocations: 56.94 MB / 2.732 GB, free: 162.9 MB / 1.167 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