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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.329/2.329, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.0016/0.0016, allocations: 183 kB / 0.4902 GB, free: 2.258 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.673/1.673, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.001057/0.001058, allocations: 96.25 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004478, allocations: 11.78 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3658, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.399/1.765, allocations: 431.9 MB / 1.651 GB, free: 14.06 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004172/1.765, allocations: 108.5 kB / 1.651 GB, free: 14 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 3.923/5.689, allocations: 0.997 GB / 2.648 GB, free: 111.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.046e-06/5.689, allocations: 0 / 2.648 GB, free: 111.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0005794/5.689, allocations: 79.91 kB / 2.648 GB, free: 111.1 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.01116/5.7, allocations: 3.061 MB / 2.651 GB, free: 108 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/5.7, allocations: 12.03 kB / 2.651 GB, free: 108 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001884/5.702, allocations: 328.2 kB / 2.652 GB, free: 107.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007797/5.71, allocations: 2.496 MB / 2.654 GB, free: 105.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/5.71, allocations: 131.8 kB / 2.654 GB, free: 105 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007152/5.711, allocations: 176 kB / 2.654 GB, free: 104.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004342/5.715, allocations: 1.55 MB / 2.656 GB, free: 103.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.413e-05/5.716, allocations: 7.844 kB / 2.656 GB, free: 103.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/5.716, allocations: 67.95 kB / 2.656 GB, free: 103.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.127e-05/5.716, allocations: 47.98 kB / 2.656 GB, free: 103.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/5.718, allocations: 1.116 MB / 2.657 GB, free: 101.9 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01405/5.733, allocations: 7.985 MB / 2.665 GB, free: 93.45 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007742/5.733, allocations: 470.6 kB / 2.665 GB, free: 92.98 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005289/5.734, allocations: 0.7524 MB / 2.666 GB, free: 92.07 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/5.734, allocations: 47.06 kB / 2.666 GB, free: 92.01 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 2.745e-06/5.734, allocations: 0 / 2.666 GB, free: 92.01 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002481/5.736, allocations: 1.015 MB / 2.667 GB, free: 90.99 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/5.737, allocations: 59.97 kB / 2.667 GB, free: 90.92 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004598/5.741, allocations: 2.089 MB / 2.669 GB, free: 88.81 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003267/5.741, allocations: 49.7 kB / 2.669 GB, free: 88.76 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001186/5.743, allocations: 1.151 MB / 2.67 GB, free: 87.59 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/5.743, allocations: 213 kB / 2.67 GB, free: 87.38 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/5.743, allocations: 20 kB / 2.67 GB, free: 87.36 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001172/5.743, allocations: 349.9 kB / 2.671 GB, free: 87.01 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007297/5.744, allocations: 342.5 kB / 2.671 GB, free: 86.68 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/5.745, allocations: 0.8118 MB / 2.672 GB, free: 85.67 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000905/5.746, allocations: 476.7 kB / 2.672 GB, free: 85.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/5.746, allocations: 4 kB / 2.672 GB, free: 85.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002876/5.749, allocations: 1.256 MB / 2.674 GB, free: 83.93 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008371/5.75, allocations: 3.211 MB / 2.677 GB, free: 80.45 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/5.75, allocations: 8 kB / 2.677 GB, free: 80.45 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.933e-05/5.75, allocations: 16 kB / 2.677 GB, free: 80.43 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/5.751, allocations: 259.6 kB / 2.677 GB, free: 80.18 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-05/5.751, allocations: 23.88 kB / 2.677 GB, free: 80.15 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/5.754, allocations: 266.2 kB / 2.677 GB, free: 79.89 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/5.754, allocations: 51.98 kB / 2.677 GB, free: 79.84 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/5.754, allocations: 4 kB / 2.677 GB, free: 79.84 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001755/5.756, allocations: 1.004 MB / 2.678 GB, free: 78.83 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/5.756, allocations: 16.12 kB / 2.678 GB, free: 78.82 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/5.756, allocations: 16 kB / 2.678 GB, free: 78.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009017/5.757, allocations: 251.6 kB / 2.679 GB, free: 78.55 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/5.757, allocations: 19.92 kB / 2.679 GB, free: 78.54 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002651/5.759, allocations: 242.5 kB / 2.679 GB, free: 78.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/5.759, allocations: 51.98 kB / 2.679 GB, free: 78.25 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 () * Number of clocked 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.001576/5.761, allocations: 0.5797 MB / 2.679 GB, free: 77.66 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008956/5.762, allocations: 237 kB / 2.68 GB, free: 77.42 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/5.764, allocations: 0.9303 MB / 2.681 GB, free: 76.49 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/5.764, allocations: 11.94 kB / 2.681 GB, free: 76.48 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/5.764, allocations: 0 / 2.681 GB, free: 76.48 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009216/5.765, allocations: 0.7221 MB / 2.681 GB, free: 75.72 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006364/5.772, allocations: 2.683 MB / 2.684 GB, free: 72.96 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/5.772, allocations: 4 kB / 2.684 GB, free: 72.96 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005818/5.772, allocations: 147.8 kB / 2.684 GB, free: 72.82 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.508e-05/5.772, allocations: 12.08 kB / 2.684 GB, free: 72.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/5.772, allocations: 16 kB / 2.684 GB, free: 72.79 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/5.772, allocations: 4 kB / 2.684 GB, free: 72.79 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/5.772, allocations: 3.953 kB / 2.684 GB, free: 72.78 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/5.775, allocations: 1.401 MB / 2.685 GB, free: 71.32 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/5.776, allocations: 473.8 kB / 2.686 GB, free: 70.84 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009446/5.777, allocations: 12 kB / 2.686 GB, free: 70.82 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/5.78, allocations: 169.9 kB / 2.686 GB, free: 70.66 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/5.78, allocations: 48.44 kB / 2.686 GB, free: 70.61 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/5.78, allocations: 35.97 kB / 2.686 GB, free: 70.58 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.004262/5.784, allocations: 1.589 MB / 2.688 GB, free: 68.98 MB / 1.167 GB Notification: Performance of sort global known variables: time 3e-07/5.784, allocations: 0 / 2.688 GB, free: 68.98 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.006488/5.791, allocations: 1.209 MB / 2.689 GB, free: 67.77 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 () * Number of clocked 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.003132/5.794, allocations: 1.267 MB / 2.69 GB, free: 66.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00309/5.797, allocations: 1.37 MB / 2.691 GB, free: 65.33 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/5.797, allocations: 0 / 2.691 GB, free: 65.33 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005839/5.798, allocations: 335 kB / 2.692 GB, free: 65.01 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008404/5.806, allocations: 1.498 MB / 2.693 GB, free: 63.54 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008832/5.815, allocations: 4.446 MB / 2.698 GB, free: 59.05 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/5.817, allocations: 1.641 MB / 2.699 GB, free: 57.38 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00326/5.82, allocations: 0.4941 MB / 2.7 GB, free: 56.89 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008068/5.821, allocations: 183.4 kB / 2.7 GB, free: 56.71 MB / 1.167 GB Notification: Performance of SimCode: time 1.112e-06/5.821, allocations: 0 / 2.7 GB, free: 56.71 MB / 1.167 GB Notification: Performance of Templates: time 0.09825/5.919, allocations: 51.6 MB / 2.75 GB, free: 5.672 MB / 1.167 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