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.225/2.225, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.001064/0.001064, allocations: 176.8 kB / 487.4 MB, free: 5.078 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.356/1.356, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 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.0009328/0.0009326, allocations: 95.84 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.584e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2167, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.245, allocations: 430.5 MB / 1.626 GB, free: 8.254 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.245, allocations: 99.94 kB / 1.626 GB, free: 8.203 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 3.263/4.509, allocations: 0.9889 GB / 2.615 GB, free: 19.98 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.573e-06/4.509, allocations: 0 / 2.615 GB, free: 19.98 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0005741/4.509, allocations: 87.8 kB / 2.615 GB, free: 19.89 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.007655/4.517, allocations: 2.549 MB / 2.618 GB, free: 17.29 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/4.517, allocations: 11.97 kB / 2.618 GB, free: 17.28 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001867/4.519, allocations: 332.2 kB / 2.618 GB, free: 16.95 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006649/4.526, allocations: 2.457 MB / 2.621 GB, free: 14.42 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.613e-05/4.526, allocations: 48 kB / 2.621 GB, free: 14.37 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000565/4.526, allocations: 104 kB / 2.621 GB, free: 14.27 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002572/4.529, allocations: 0.9861 MB / 2.622 GB, free: 13.28 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002788/4.532, allocations: 1.317 MB / 2.623 GB, free: 11.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.122e-05/4.532, allocations: 0 / 2.623 GB, free: 11.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/4.532, allocations: 4 kB / 2.623 GB, free: 11.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.286e-05/4.532, allocations: 36 kB / 2.623 GB, free: 11.86 MB / 1.151 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.01209/4.544, allocations: 7.658 MB / 2.631 GB, free: 3.719 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000634/4.545, allocations: 442.4 kB / 2.631 GB, free: 3.281 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003938/4.545, allocations: 309.2 kB / 2.631 GB, free: 2.977 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005249/4.546, allocations: 0.7524 MB / 2.632 GB, free: 2.059 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/4.546, allocations: 47.06 kB / 2.632 GB, free: 2.004 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 4.458e-06/4.546, allocations: 0 / 2.632 GB, free: 2.004 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.002016/4.548, allocations: 0.7229 MB / 2.633 GB, free: 1.27 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/4.548, allocations: 63.97 kB / 2.633 GB, free: 1.195 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8114/5.359, allocations: 1.708 MB / 2.635 GB, free: 168.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003987/5.36, allocations: 28.64 kB / 2.635 GB, free: 168.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001217/5.361, allocations: 1.16 MB / 2.636 GB, free: 168 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002822/5.361, allocations: 206.2 kB / 2.636 GB, free: 167.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/5.361, allocations: 0.5625 kB / 2.636 GB, free: 167.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001145/5.361, allocations: 348.2 kB / 2.636 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/5.362, allocations: 302.7 kB / 2.636 GB, free: 167.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009225/5.363, allocations: 0.7571 MB / 2.637 GB, free: 167.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/5.364, allocations: 455.3 kB / 2.638 GB, free: 167.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/5.364, allocations: 4.266 kB / 2.638 GB, free: 167.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002767/5.367, allocations: 1.117 MB / 2.639 GB, free: 166.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007435/5.368, allocations: 3.163 MB / 2.642 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.232e-05/5.368, allocations: 7.812 kB / 2.642 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.093e-05/5.368, allocations: 13.62 kB / 2.642 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/5.369, allocations: 260.5 kB / 2.642 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.312e-05/5.369, allocations: 17.14 kB / 2.642 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/5.371, allocations: 205.2 kB / 2.642 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/5.372, allocations: 52.09 kB / 2.642 GB, free: 163.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/5.372, allocations: 4.281 kB / 2.642 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001866/5.374, allocations: 0.8619 MB / 2.643 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/5.374, allocations: 8.094 kB / 2.643 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/5.374, allocations: 13.88 kB / 2.643 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009953/5.375, allocations: 252.7 kB / 2.643 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/5.375, allocations: 20.77 kB / 2.644 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/5.377, allocations: 167 kB / 2.644 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/5.377, allocations: 52.16 kB / 2.644 GB, free: 163.5 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.0004156/5.377, allocations: 143.7 kB / 2.644 GB, free: 163.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006117/5.378, allocations: 212 kB / 2.644 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/5.38, allocations: 0.8295 MB / 2.645 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/5.381, allocations: 11.62 kB / 2.645 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/5.381, allocations: 0 / 2.645 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001131/5.382, allocations: 0.6471 MB / 2.646 GB, free: 163 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005679/5.387, allocations: 2.42 MB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/5.387, allocations: 5.719 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006778/5.388, allocations: 146.3 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-05/5.388, allocations: 4.062 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.353e-05/5.388, allocations: 14.22 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/5.388, allocations: 4.531 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/5.388, allocations: 1.094 kB / 2.648 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/5.391, allocations: 1.272 MB / 2.649 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/5.392, allocations: 443 kB / 2.65 GB, free: 162.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/5.392, allocations: 0.9688 kB / 2.65 GB, free: 162.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/5.394, allocations: 156.8 kB / 2.65 GB, free: 162.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/5.394, allocations: 52.06 kB / 2.65 GB, free: 162.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.703e-05/5.394, allocations: 33.03 kB / 2.65 GB, free: 162.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002589/5.396, allocations: 1.26 MB / 2.651 GB, free: 161.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 8.01e-07/5.396, allocations: 0 / 2.651 GB, free: 161.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005911/5.402, allocations: 1.218 MB / 2.652 GB, free: 161.9 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.003068/5.405, allocations: 1.227 MB / 2.654 GB, free: 161.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003192/5.409, allocations: 1.293 MB / 2.655 GB, free: 161.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/5.409, allocations: 1.656 kB / 2.655 GB, free: 161.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005656/5.409, allocations: 305.4 kB / 2.655 GB, free: 161.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008073/5.417, allocations: 1.259 MB / 2.656 GB, free: 161.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00659/5.424, allocations: 2.79 MB / 2.659 GB, free: 160.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/5.425, allocations: 1.645 MB / 2.661 GB, free: 160.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003501/5.429, allocations: 0.6423 MB / 2.661 GB, free: 160.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/5.429, allocations: 124.2 kB / 2.661 GB, free: 160.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.183e-06/5.429, allocations: 0 / 2.661 GB, free: 160.1 MB / 1.151 GB Notification: Performance of Templates: time 0.09775/5.527, allocations: 44.78 MB / 2.705 GB, free: 158.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