Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.467/1.467, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 181.4 kB / 326.5 MB, free: 2.285 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.4 MB / 0.5775 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008632/0.0008632, allocations: 90.41 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003097, allocations: 11.38 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.202, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7952/0.9972, allocations: 391.1 MB / 1.282 GB, free: 9.73 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.9976, allocations: 105.2 kB / 1.282 GB, free: 9.672 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 0.7743/1.772, allocations: 170.6 MB / 1.449 GB, free: 274.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.004e-06/1.772, allocations: 0 / 1.449 GB, free: 274.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.496e-05/1.772, allocations: 18.75 kB / 1.449 GB, free: 274.1 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001989/1.774, allocations: 0.8243 MB / 1.45 GB, free: 273.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/1.774, allocations: 7.438 kB / 1.45 GB, free: 273.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/1.774, allocations: 56.77 kB / 1.45 GB, free: 273.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/1.775, allocations: 430.5 kB / 1.45 GB, free: 273.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/1.775, allocations: 19.94 kB / 1.45 GB, free: 273 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.946e-05/1.775, allocations: 32.75 kB / 1.45 GB, free: 273 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005575/1.776, allocations: 206.9 kB / 1.45 GB, free: 272.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.776, allocations: 3.984 kB / 1.45 GB, free: 272.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/1.776, allocations: 14.22 kB / 1.45 GB, free: 272.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/1.776, allocations: 7.422 kB / 1.45 GB, free: 272.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/1.777, allocations: 168.2 kB / 1.45 GB, free: 272.8 MB / 0.8698 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.0021/1.779, allocations: 0.9501 MB / 1.451 GB, free: 272.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/1.779, allocations: 132.5 kB / 1.452 GB, free: 272 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002564/1.779, allocations: 341.7 kB / 1.452 GB, free: 271.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/1.779, allocations: 34.56 kB / 1.452 GB, free: 271.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 2.174e-06/1.779, allocations: 0 / 1.452 GB, free: 271.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0008525/1.78, allocations: 250.2 kB / 1.452 GB, free: 271.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/1.78, allocations: 55.41 kB / 1.452 GB, free: 271.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/1.781, allocations: 416.2 kB / 1.453 GB, free: 271.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/1.781, allocations: 32.98 kB / 1.453 GB, free: 271.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/1.781, allocations: 234.2 kB / 1.453 GB, free: 270.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.035e-05/1.781, allocations: 43.27 kB / 1.453 GB, free: 270.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.499e-05/1.781, allocations: 4 kB / 1.453 GB, free: 270.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.115e-05/1.781, allocations: 357.7 kB / 1.453 GB, free: 270.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/1.782, allocations: 68.89 kB / 1.453 GB, free: 270.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/1.782, allocations: 184.2 kB / 1.453 GB, free: 270.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002692/1.782, allocations: 75.34 kB / 1.454 GB, free: 270.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.782, allocations: 3.156 kB / 1.454 GB, free: 270.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006681/1.783, allocations: 257 kB / 1.454 GB, free: 270.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.241e-05/1.783, allocations: 274.2 kB / 1.454 GB, free: 269.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/1.783, allocations: 3.953 kB / 1.454 GB, free: 269.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/1.783, allocations: 7.469 kB / 1.454 GB, free: 269.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003399/1.783, allocations: 48.72 kB / 1.454 GB, free: 269.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/1.783, allocations: 0 / 1.454 GB, free: 269.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/1.784, allocations: 53.83 kB / 1.454 GB, free: 269.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/1.784, allocations: 11.73 kB / 1.454 GB, free: 269.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/1.784, allocations: 3.25 kB / 1.454 GB, free: 269.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000551/1.785, allocations: 193 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/1.785, allocations: 3.375 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-06/1.785, allocations: 0 / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/1.785, allocations: 51.66 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/1.785, allocations: 3.938 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/1.786, allocations: 44.69 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/1.786, allocations: 11.48 kB / 1.454 GB, free: 269.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0002221/1.786, allocations: 242.2 kB / 1.455 GB, free: 269.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.686e-05/1.786, allocations: 44.03 kB / 1.455 GB, free: 269.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006983/1.787, allocations: 268.8 kB / 1.455 GB, free: 269.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/1.787, allocations: 0 / 1.455 GB, free: 269.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/1.787, allocations: 3.5 kB / 1.455 GB, free: 269.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/1.787, allocations: 0 / 1.455 GB, free: 269.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/1.788, allocations: 0.7197 MB / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/1.788, allocations: 0 / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/1.788, allocations: 35.73 kB / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/1.788, allocations: 0 / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/1.788, allocations: 7.875 kB / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/1.788, allocations: 3.984 kB / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.788, allocations: 11.83 kB / 1.456 GB, free: 268.7 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/1.789, allocations: 395 kB / 1.456 GB, free: 268.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/1.789, allocations: 142.1 kB / 1.456 GB, free: 268.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.861e-05/1.789, allocations: 4 kB / 1.456 GB, free: 268.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/1.79, allocations: 26.06 kB / 1.456 GB, free: 268.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.324e-05/1.79, allocations: 19.52 kB / 1.456 GB, free: 268.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/1.79, allocations: 7.531 kB / 1.456 GB, free: 268.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0004327/1.79, allocations: 327.1 kB / 1.457 GB, free: 268 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.1e-07/1.79, allocations: 0 / 1.457 GB, free: 268 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001091/1.791, allocations: 231.5 kB / 1.457 GB, free: 267.9 MB / 0.8698 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 (16): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001567/1.793, allocations: 0.5796 MB / 1.457 GB, free: 267.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0008585/1.794, allocations: 285.8 kB / 1.458 GB, free: 267.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.794, allocations: 0 / 1.458 GB, free: 267.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002495/1.794, allocations: 85.64 kB / 1.458 GB, free: 267.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/1.796, allocations: 227.2 kB / 1.458 GB, free: 267.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/1.797, allocations: 0.8325 MB / 1.459 GB, free: 266.8 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/1.797, allocations: 0.8357 MB / 1.46 GB, free: 266 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0004489/1.798, allocations: 89.33 kB / 1.46 GB, free: 266 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/1.798, allocations: 35.39 kB / 1.46 GB, free: 266 MB / 0.8698 GB Notification: Performance of SimCode: time 5.31e-07/1.798, allocations: 0 / 1.46 GB, free: 266 MB / 0.8698 GB Notification: Performance of Templates: time 0.02059/1.818, allocations: 9.302 MB / 1.469 GB, free: 258.5 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches