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.471/2.471, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001318/0.001318, allocations: 181.2 kB / 498.1 MB, free: 5.684 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.796/1.796, allocations: 223.2 MB / 0.7948 GB, free: 17.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.0009611/0.0009611, allocations: 106.4 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004254, allocations: 10.09 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3548, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.082/1.437, allocations: 399.5 MB / 1.613 GB, free: 12.2 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/1.437, allocations: 104.3 kB / 1.613 GB, free: 12.14 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.628/3.065, allocations: 438.9 MB / 2.042 GB, free: 296.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.884e-06/3.065, allocations: 0 / 2.042 GB, free: 296.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.852e-05/3.065, allocations: 43.22 kB / 2.042 GB, free: 296 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00272/3.068, allocations: 1.519 MB / 2.043 GB, free: 294.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/3.068, allocations: 12.03 kB / 2.043 GB, free: 294.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/3.068, allocations: 154.5 kB / 2.043 GB, free: 294.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/3.07, allocations: 0.8375 MB / 2.044 GB, free: 293.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/3.07, allocations: 85.31 kB / 2.044 GB, free: 293.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/3.07, allocations: 123.8 kB / 2.044 GB, free: 293.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008572/3.071, allocations: 0.6317 MB / 2.045 GB, free: 292.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/3.071, allocations: 0 / 2.045 GB, free: 292.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/3.071, allocations: 23.95 kB / 2.045 GB, free: 292.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/3.071, allocations: 16 kB / 2.045 GB, free: 292.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00073/3.072, allocations: 476.9 kB / 2.045 GB, free: 292.1 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.004171/3.076, allocations: 3.075 MB / 2.048 GB, free: 288.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/3.076, allocations: 333.1 kB / 2.049 GB, free: 288.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/3.077, allocations: 343.4 kB / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/3.077, allocations: 38.84 kB / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/3.077, allocations: 0 / 2.049 GB, free: 288.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=33): time 0.001163/3.078, allocations: 0.5623 MB / 2.05 GB, free: 287.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/3.078, allocations: 55.34 kB / 2.05 GB, free: 287.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007388/3.079, allocations: 0.7888 MB / 2.051 GB, free: 286.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001367/3.079, allocations: 57.7 kB / 2.051 GB, free: 286.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004136/3.079, allocations: 0.5555 MB / 2.051 GB, free: 286 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 6.819e-05/3.079, allocations: 113.4 kB / 2.051 GB, free: 285.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/3.079, allocations: 15.94 kB / 2.051 GB, free: 285.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.648e-05/3.08, allocations: 330 kB / 2.052 GB, free: 285.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/3.08, allocations: 185.2 kB / 2.052 GB, free: 285.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/3.081, allocations: 1.432 MB / 2.053 GB, free: 283.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000413/3.081, allocations: 312.5 kB / 2.053 GB, free: 283.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/3.081, allocations: 8 kB / 2.053 GB, free: 283.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001044/3.082, allocations: 0.6499 MB / 2.054 GB, free: 282.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/3.083, allocations: 0.8058 MB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/3.083, allocations: 4 kB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/3.083, allocations: 8 kB / 2.055 GB, free: 281.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/3.084, allocations: 203.6 kB / 2.055 GB, free: 281.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/3.085, allocations: 2.954 MB / 2.058 GB, free: 278.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003135/3.088, allocations: 0.9165 MB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/3.088, allocations: 27.98 kB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/3.088, allocations: 4 kB / 2.059 GB, free: 277.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008102/3.089, allocations: 0.5088 MB / 2.059 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/3.089, allocations: 4 kB / 2.059 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.703e-06/3.089, allocations: 4 kB / 2.059 GB, free: 277 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006175/3.09, allocations: 168 kB / 2.06 GB, free: 276.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/3.09, allocations: 11.95 kB / 2.06 GB, free: 276.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/3.093, allocations: 0.8939 MB / 2.06 GB, free: 275.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/3.093, allocations: 23.98 kB / 2.06 GB, free: 275.9 MB / 1.167 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 () * Number of clocked 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.0005252/3.093, allocations: 338.6 kB / 2.061 GB, free: 275.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/3.093, allocations: 98.69 kB / 2.061 GB, free: 275.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000959/3.094, allocations: 0.5379 MB / 2.061 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/3.094, allocations: 4 kB / 2.061 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/3.094, allocations: 7.891 kB / 2.061 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/3.094, allocations: 3.984 kB / 2.061 GB, free: 274.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/3.096, allocations: 1.278 MB / 2.063 GB, free: 273.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/3.096, allocations: 11.94 kB / 2.063 GB, free: 273.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/3.097, allocations: 117.6 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/3.097, allocations: 4 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/3.097, allocations: 16.11 kB / 2.063 GB, free: 273.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007821/3.098, allocations: 2.942 MB / 2.066 GB, free: 270.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/3.098, allocations: 0 / 2.066 GB, free: 270.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007441/3.098, allocations: 0.6384 MB / 2.066 GB, free: 269.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/3.099, allocations: 227.4 kB / 2.067 GB, free: 269.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/3.099, allocations: 15.98 kB / 2.067 GB, free: 269.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006058/3.099, allocations: 71.77 kB / 2.067 GB, free: 269.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.887e-05/3.099, allocations: 27.97 kB / 2.067 GB, free: 269.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/3.099, allocations: 15.95 kB / 2.067 GB, free: 269.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0006068/3.1, allocations: 0.6006 MB / 2.067 GB, free: 268.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.21e-07/3.1, allocations: 0 / 2.067 GB, free: 268.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001791/3.102, allocations: 0.605 MB / 2.068 GB, free: 268.1 MB / 1.167 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 () * Number of clocked 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.00083/3.103, allocations: 0.5069 MB / 2.068 GB, free: 267.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002239/3.105, allocations: 0.8311 MB / 2.069 GB, free: 266.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/3.105, allocations: 0 / 2.069 GB, free: 266.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004814/3.105, allocations: 228.4 kB / 2.069 GB, free: 266.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/3.108, allocations: 485 kB / 2.07 GB, free: 266.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/3.11, allocations: 1.794 MB / 2.072 GB, free: 264.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/3.11, allocations: 1.046 MB / 2.073 GB, free: 263.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00142/3.112, allocations: 202.2 kB / 2.073 GB, free: 263 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/3.112, allocations: 79.41 kB / 2.073 GB, free: 263 MB / 1.167 GB Notification: Performance of SimCode: time 1.182e-06/3.112, allocations: 0 / 2.073 GB, free: 263 MB / 1.167 GB Notification: Performance of Templates: time 0.0361/3.148, allocations: 27.48 MB / 2.1 GB, free: 236 MB / 1.167 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