Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001367/0.001367, allocations: 176.9 kB / 492.3 MB, free: 0.6172 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.447/1.447, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0008936/0.0008936, allocations: 91.94 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.833e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2747, allocations: 142.4 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.163/1.438, allocations: 399.4 MB / 1.602 GB, free: 14.53 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/1.438, allocations: 97.12 kB / 1.603 GB, free: 14.48 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.539/2.977, allocations: 437.8 MB / 2.03 GB, free: 172.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.202e-06/2.977, allocations: 0 / 2.03 GB, free: 172.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.923e-05/2.977, allocations: 31.94 kB / 2.03 GB, free: 172.3 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002284/2.979, allocations: 1.325 MB / 2.031 GB, free: 170.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/2.979, allocations: 8.031 kB / 2.031 GB, free: 170.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002872/2.979, allocations: 162.4 kB / 2.032 GB, free: 170.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/2.981, allocations: 0.8175 MB / 2.032 GB, free: 169.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.951e-05/2.981, allocations: 81.31 kB / 2.032 GB, free: 169.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/2.981, allocations: 120 kB / 2.033 GB, free: 169.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00081/2.982, allocations: 0.5928 MB / 2.033 GB, free: 169.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/2.982, allocations: 4 kB / 2.033 GB, free: 169.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/2.982, allocations: 28 kB / 2.033 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/2.982, allocations: 15.95 kB / 2.033 GB, free: 169 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005771/2.983, allocations: 417 kB / 2.034 GB, free: 168.6 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.00406/2.987, allocations: 3.07 MB / 2.037 GB, free: 165.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/2.987, allocations: 307.8 kB / 2.037 GB, free: 165.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/2.987, allocations: 137.4 kB / 2.037 GB, free: 164.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002615/2.988, allocations: 348.7 kB / 2.037 GB, free: 164.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/2.988, allocations: 34.84 kB / 2.037 GB, free: 164.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.374e-06/2.988, allocations: 0 / 2.037 GB, free: 164.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.0007586/2.989, allocations: 410.4 kB / 2.038 GB, free: 164.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/2.989, allocations: 55.41 kB / 2.038 GB, free: 164 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007539/2.989, allocations: 0.7741 MB / 2.039 GB, free: 163.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/2.989, allocations: 61.7 kB / 2.039 GB, free: 163.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/2.99, allocations: 0.5327 MB / 2.039 GB, free: 162.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.725e-05/2.99, allocations: 122.3 kB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/2.99, allocations: 8 kB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.505e-05/2.99, allocations: 334 kB / 2.04 GB, free: 162.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/2.99, allocations: 149.5 kB / 2.04 GB, free: 162 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/2.991, allocations: 1.406 MB / 2.041 GB, free: 160.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/2.992, allocations: 297.6 kB / 2.041 GB, free: 159.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/2.992, allocations: 0 / 2.041 GB, free: 159.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008956/2.993, allocations: 0.6032 MB / 2.042 GB, free: 159.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/2.993, allocations: 0.8021 MB / 2.043 GB, free: 158.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/2.993, allocations: 7.938 kB / 2.043 GB, free: 158.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/2.993, allocations: 4 kB / 2.043 GB, free: 158.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/2.994, allocations: 199.7 kB / 2.043 GB, free: 158.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/2.995, allocations: 2.965 MB / 2.046 GB, free: 155.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/2.998, allocations: 0.9094 MB / 2.047 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.387e-05/2.999, allocations: 35.97 kB / 2.047 GB, free: 154.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/2.999, allocations: 8 kB / 2.047 GB, free: 154.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006979/2.999, allocations: 461.1 kB / 2.047 GB, free: 153.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/2.999, allocations: 7.938 kB / 2.047 GB, free: 153.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/2.999, allocations: 4 kB / 2.047 GB, free: 153.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/3, allocations: 163.8 kB / 2.047 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/3, allocations: 8 kB / 2.047 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003295/3.003, allocations: 0.9134 MB / 2.048 GB, free: 152.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/3.003, allocations: 23.98 kB / 2.048 GB, free: 152.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002945/3.004, allocations: 165.9 kB / 2.048 GB, free: 152.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/3.004, allocations: 94.78 kB / 2.049 GB, free: 152.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009442/3.005, allocations: 0.4949 MB / 2.049 GB, free: 151.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/3.005, allocations: 4 kB / 2.049 GB, free: 151.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/3.005, allocations: 0 / 2.049 GB, free: 151.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/3.005, allocations: 7.938 kB / 2.049 GB, free: 151.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/3.007, allocations: 1.226 MB / 2.05 GB, free: 150.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/3.007, allocations: 4 kB / 2.05 GB, free: 150.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/3.007, allocations: 123.8 kB / 2.05 GB, free: 150.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/3.007, allocations: 7.938 kB / 2.05 GB, free: 150.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/3.007, allocations: 19.92 kB / 2.05 GB, free: 150.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007626/3.008, allocations: 2.934 MB / 2.053 GB, free: 147.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/3.008, allocations: 7.984 kB / 2.053 GB, free: 147.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000568/3.009, allocations: 0.5909 MB / 2.054 GB, free: 146.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003575/3.009, allocations: 231.7 kB / 2.054 GB, free: 146.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/3.009, allocations: 8 kB / 2.054 GB, free: 146.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006184/3.01, allocations: 63.83 kB / 2.054 GB, free: 146.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/3.01, allocations: 39.89 kB / 2.054 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/3.01, allocations: 15.94 kB / 2.054 GB, free: 146.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006291/3.01, allocations: 0.5897 MB / 2.055 GB, free: 145.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.01, allocations: 0 / 2.055 GB, free: 145.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001999/3.012, allocations: 0.6205 MB / 2.055 GB, free: 145.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/3.014, allocations: 0.493 MB / 2.056 GB, free: 144.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002174/3.016, allocations: 0.7896 MB / 2.057 GB, free: 143.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/3.016, allocations: 0.75 kB / 2.057 GB, free: 143.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004397/3.016, allocations: 207.9 kB / 2.057 GB, free: 143.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/3.019, allocations: 473.8 kB / 2.057 GB, free: 143.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/3.021, allocations: 1.07 MB / 2.058 GB, free: 142.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/3.021, allocations: 1.051 MB / 2.059 GB, free: 141 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001649/3.023, allocations: 271.1 kB / 2.06 GB, free: 140.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/3.023, allocations: 67.42 kB / 2.06 GB, free: 140.6 MB / 1.151 GB Notification: Performance of SimCode: time 7.11e-07/3.023, allocations: 4 kB / 2.06 GB, free: 140.6 MB / 1.151 GB Notification: Performance of Templates: time 0.04168/3.065, allocations: 29.62 MB / 2.089 GB, free: 111.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches