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.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001086/0.001086, allocations: 188.8 kB / 487.4 MB, free: 5.059 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.48/1.48, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 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.0008572/0.000857, allocations: 91.95 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.341e-05/1.343e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.246, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.043/1.289, allocations: 398.7 MB / 1.595 GB, free: 7.297 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/1.289, allocations: 97.75 kB / 1.595 GB, free: 7.246 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.432/2.722, allocations: 434.3 MB / 2.02 GB, free: 187.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.112e-06/2.722, allocations: 0 / 2.02 GB, free: 187.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001109/2.722, allocations: 35.98 kB / 2.02 GB, free: 187.7 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.002467/2.724, allocations: 1.326 MB / 2.021 GB, free: 186.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/2.724, allocations: 8.031 kB / 2.021 GB, free: 186.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004866/2.725, allocations: 154.5 kB / 2.021 GB, free: 186.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/2.726, allocations: 0.8213 MB / 2.022 GB, free: 185.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/2.726, allocations: 20 kB / 2.022 GB, free: 185.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002527/2.727, allocations: 87.92 kB / 2.022 GB, free: 185.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006361/2.727, allocations: 390.5 kB / 2.022 GB, free: 184.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007196/2.728, allocations: 0.5238 MB / 2.023 GB, free: 184.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/2.728, allocations: 0 / 2.023 GB, free: 184.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/2.728, allocations: 3.953 kB / 2.023 GB, free: 184.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/2.728, allocations: 16 kB / 2.023 GB, free: 184.3 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.003931/2.732, allocations: 2.91 MB / 2.026 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/2.732, allocations: 307.1 kB / 2.026 GB, free: 180.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/2.733, allocations: 129.4 kB / 2.026 GB, free: 180.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/2.733, allocations: 352.7 kB / 2.026 GB, free: 180.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/2.733, allocations: 34.84 kB / 2.026 GB, free: 180.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 1.533e-06/2.733, allocations: 0 / 2.026 GB, free: 180.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001236/2.734, allocations: 486.7 kB / 2.027 GB, free: 179.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.787e-05/2.734, allocations: 59.36 kB / 2.027 GB, free: 179.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006487/2.735, allocations: 0.6439 MB / 2.028 GB, free: 179.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001334/2.735, allocations: 33.7 kB / 2.028 GB, free: 179.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/2.735, allocations: 0.5359 MB / 2.028 GB, free: 178.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.504e-05/2.735, allocations: 110.4 kB / 2.028 GB, free: 178.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/2.735, allocations: 0 / 2.028 GB, free: 178.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.194e-05/2.736, allocations: 333.9 kB / 2.029 GB, free: 178.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/2.736, allocations: 149.5 kB / 2.029 GB, free: 177.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009339/2.737, allocations: 1.366 MB / 2.03 GB, free: 176.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008462/2.738, allocations: 376.6 kB / 2.03 GB, free: 175.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/2.738, allocations: 0 / 2.03 GB, free: 175.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001377/2.739, allocations: 0.6501 MB / 2.031 GB, free: 175.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/2.739, allocations: 0.8194 MB / 2.032 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/2.739, allocations: 0 / 2.032 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/2.739, allocations: 7.984 kB / 2.032 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/2.74, allocations: 203.6 kB / 2.032 GB, free: 174 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001045/2.741, allocations: 2.997 MB / 2.035 GB, free: 170.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/2.745, allocations: 0.8746 MB / 2.036 GB, free: 170.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-05/2.745, allocations: 31.97 kB / 2.036 GB, free: 170 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/2.745, allocations: 4 kB / 2.036 GB, free: 170 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001065/2.746, allocations: 489.1 kB / 2.036 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/2.746, allocations: 0 / 2.036 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.355e-06/2.746, allocations: 4 kB / 2.036 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006679/2.747, allocations: 159.8 kB / 2.037 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/2.747, allocations: 7.938 kB / 2.037 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/2.75, allocations: 0.8633 MB / 2.037 GB, free: 168.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.745e-05/2.75, allocations: 27.98 kB / 2.037 GB, free: 168.5 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 (71): * Single equations (assignments): 66 * 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.0003588/2.75, allocations: 134.2 kB / 2.038 GB, free: 168.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/2.751, allocations: 90.72 kB / 2.038 GB, free: 168.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/2.752, allocations: 0.5413 MB / 2.038 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/2.752, allocations: 4 kB / 2.038 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/2.752, allocations: 0 / 2.038 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/2.752, allocations: 0 / 2.038 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/2.754, allocations: 1.216 MB / 2.039 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/2.754, allocations: 8.125 kB / 2.039 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005987/2.755, allocations: 119.8 kB / 2.039 GB, free: 166.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/2.755, allocations: 4 kB / 2.039 GB, free: 166.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/2.755, allocations: 7.984 kB / 2.039 GB, free: 166.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007464/2.756, allocations: 2.95 MB / 2.042 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/2.756, allocations: 3.938 kB / 2.042 GB, free: 163.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/2.757, allocations: 0.6623 MB / 2.043 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/2.757, allocations: 211.8 kB / 2.043 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/2.757, allocations: 3.984 kB / 2.043 GB, free: 162.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005783/2.758, allocations: 63.83 kB / 2.043 GB, free: 162.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/2.758, allocations: 27.97 kB / 2.043 GB, free: 162.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/2.758, allocations: 23.94 kB / 2.043 GB, free: 162.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005094/2.758, allocations: 484.6 kB / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.61e-07/2.758, allocations: 0 / 2.044 GB, free: 161.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001815/2.76, allocations: 0.5889 MB / 2.044 GB, free: 161.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.0009488/2.761, allocations: 0.4918 MB / 2.045 GB, free: 160.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001998/2.763, allocations: 0.733 MB / 2.046 GB, free: 159.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/2.763, allocations: 0 / 2.046 GB, free: 159.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003994/2.764, allocations: 203.7 kB / 2.046 GB, free: 159.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/2.766, allocations: 395.5 kB / 2.046 GB, free: 159.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/2.767, allocations: 1.027 MB / 2.047 GB, free: 158.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/2.768, allocations: 1.055 MB / 2.048 GB, free: 157.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001277/2.769, allocations: 241.2 kB / 2.048 GB, free: 156.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/2.769, allocations: 63.42 kB / 2.048 GB, free: 156.8 MB / 1.151 GB Notification: Performance of SimCode: time 4.91e-07/2.769, allocations: 0 / 2.048 GB, free: 156.8 MB / 1.151 GB Notification: Performance of Templates: time 0.03225/2.801, allocations: 24.54 MB / 2.072 GB, free: 132.6 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