Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.707/2.707, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.002447/0.002447, allocations: 179.9 kB / 0.4902 GB, free: 2.234 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.822/1.822, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009488/0.0009489, allocations: 108.2 kB / 0.9396 GB, free: 1.805 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.000399, allocations: 11.22 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3401, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.291/1.631, allocations: 395.7 MB / 1.616 GB, free: 1.086 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004297/1.631, allocations: 97.86 kB / 1.616 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 0.7023/2.334, allocations: 241.4 MB / 1.851 GB, free: 88 kB / 1.151 GB Notification: Performance of FrontEnd: time 2.294e-06/2.334, allocations: 0 / 1.851 GB, free: 88 kB / 1.151 GB Notification: Performance of Transformations before backend: time 6.037e-05/2.334, allocations: 23.98 kB / 1.852 GB, free: 64 kB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002432/2.336, allocations: 1.09 MB / 1.853 GB, free: 14.92 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/2.336, allocations: 8.031 kB / 1.853 GB, free: 14.91 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/2.336, allocations: 86.97 kB / 1.853 GB, free: 14.83 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/2.337, allocations: 0.519 MB / 1.853 GB, free: 14.27 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.794e-05/2.337, allocations: 37 kB / 1.853 GB, free: 14.23 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.72e-05/2.337, allocations: 52 kB / 1.853 GB, free: 14.18 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/2.339, allocations: 0.6254 MB / 1.854 GB, free: 13.49 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/2.339, allocations: 11.94 kB / 1.854 GB, free: 13.48 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/2.339, allocations: 16 kB / 1.854 GB, free: 13.46 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/2.339, allocations: 15.94 kB / 1.854 GB, free: 13.45 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/2.34, allocations: 0.4995 MB / 1.854 GB, free: 12.95 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.0038/2.344, allocations: 3.216 MB / 1.858 GB, free: 9.535 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00071/2.344, allocations: 335.6 kB / 1.858 GB, free: 9.195 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003995/2.345, allocations: 348.4 kB / 1.858 GB, free: 8.781 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/2.345, allocations: 38.56 kB / 1.858 GB, free: 8.734 MB / 1.167 GB Notification: Performance of pre-optimization done (n=38): time 2.534e-06/2.345, allocations: 0 / 1.858 GB, free: 8.734 MB / 1.167 GB Notification: Performance of matching and sorting (n=38): time 0.002145/2.347, allocations: 0.8382 MB / 1.859 GB, free: 7.867 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/2.347, allocations: 55.41 kB / 1.859 GB, free: 7.801 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006625/2.348, allocations: 0.5149 MB / 1.86 GB, free: 7.277 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/2.348, allocations: 41.7 kB / 1.86 GB, free: 7.23 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/2.348, allocations: 324.5 kB / 1.86 GB, free: 6.906 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/2.348, allocations: 130.1 kB / 1.86 GB, free: 6.777 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/2.348, allocations: 12 kB / 1.86 GB, free: 6.766 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001928/2.348, allocations: 370.8 kB / 1.86 GB, free: 6.395 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004831/2.349, allocations: 217.2 kB / 1.861 GB, free: 6.18 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/2.349, allocations: 400.2 kB / 1.861 GB, free: 5.715 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/2.35, allocations: 256.7 kB / 1.861 GB, free: 5.465 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/2.35, allocations: 0 / 1.861 GB, free: 5.465 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001502/2.352, allocations: 0.7184 MB / 1.862 GB, free: 4.734 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009559/2.353, allocations: 1.748 MB / 1.864 GB, free: 2.848 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/2.353, allocations: 4 kB / 1.864 GB, free: 2.844 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006512/2.353, allocations: 140.7 kB / 1.864 GB, free: 2.703 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/2.354, allocations: 155.8 kB / 1.864 GB, free: 2.551 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000682/2.355, allocations: 0.6382 MB / 1.865 GB, free: 1.887 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006993/2.355, allocations: 103.3 kB / 1.865 GB, free: 1.785 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/2.355, allocations: 39.97 kB / 1.865 GB, free: 1.746 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/2.355, allocations: 5.094 kB / 1.865 GB, free: 1.742 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00124/2.357, allocations: 0.6113 MB / 1.865 GB, free: 1.129 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/2.357, allocations: 7.953 kB / 1.865 GB, free: 1.121 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.907e-06/2.357, allocations: 11.94 kB / 1.865 GB, free: 1.109 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/2.357, allocations: 163.8 kB / 1.866 GB, free: 0.9492 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/2.357, allocations: 16.39 kB / 1.866 GB, free: 0.9336 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008561/2.358, allocations: 91.58 kB / 1.866 GB, free: 0.8438 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.993e-05/2.358, allocations: 39.98 kB / 1.866 GB, free: 0.8047 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (70): * Single equations (assignments): 69 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000502/2.359, allocations: 276.9 kB / 1.866 GB, free: 0.5234 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/2.359, allocations: 63.23 kB / 1.866 GB, free: 472 kB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6685/3.028, allocations: 0.6579 MB / 1.867 GB, free: 358.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.516e-05/3.028, allocations: 6.906 kB / 1.867 GB, free: 358.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/3.028, allocations: 0 / 1.867 GB, free: 358.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/3.028, allocations: 1.984 kB / 1.867 GB, free: 358.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/3.031, allocations: 1.389 MB / 1.868 GB, free: 358.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/3.031, allocations: 4.016 kB / 1.868 GB, free: 358.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004135/3.031, allocations: 92.06 kB / 1.868 GB, free: 358.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/3.032, allocations: 124.2 kB / 1.868 GB, free: 358.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/3.032, allocations: 18.45 kB / 1.868 GB, free: 358.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005316/3.032, allocations: 0.643 MB / 1.869 GB, free: 358 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/3.032, allocations: 0 / 1.869 GB, free: 358 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/3.034, allocations: 0.7521 MB / 1.87 GB, free: 357.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/3.034, allocations: 203.8 kB / 1.87 GB, free: 357.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/3.034, allocations: 13.88 kB / 1.87 GB, free: 357.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/3.035, allocations: 57.91 kB / 1.87 GB, free: 357.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.237e-05/3.035, allocations: 32.61 kB / 1.87 GB, free: 357.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/3.035, allocations: 14.53 kB / 1.87 GB, free: 357.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005107/3.035, allocations: 398.4 kB / 1.87 GB, free: 357.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/3.036, allocations: 3.25 kB / 1.87 GB, free: 357.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00152/3.037, allocations: 417.3 kB / 1.871 GB, free: 357.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009738/3.038, allocations: 428.4 kB / 1.871 GB, free: 357.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002432/3.04, allocations: 0.8954 MB / 1.872 GB, free: 357.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/3.04, allocations: 0 / 1.872 GB, free: 357.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0007465/3.041, allocations: 306.1 kB / 1.872 GB, free: 357.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/3.043, allocations: 263.3 kB / 1.872 GB, free: 357.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/3.045, allocations: 1.287 MB / 1.874 GB, free: 356.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/3.045, allocations: 0.9281 MB / 1.875 GB, free: 356.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.000738/3.046, allocations: 148.2 kB / 1.875 GB, free: 356.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/3.046, allocations: 62.72 kB / 1.875 GB, free: 356.1 MB / 1.167 GB Notification: Performance of SimCode: time 8.52e-07/3.046, allocations: 0.9375 kB / 1.875 GB, free: 356.1 MB / 1.167 GB Notification: Performance of Templates: time 0.02459/3.071, allocations: 12.89 MB / 1.887 GB, free: 355.9 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches