Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009574/0.0009569, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006219/0.006219, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 462.7 MB / 0.7364 GB, free: 264 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 10.12 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3035, allocations: 159.6 MB / 1.059 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01793/0.3215, allocations: 14.98 MB / 1.073 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006725/0.3283, allocations: 4.287 MB / 1.077 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005865/0.3289, allocations: 15.88 kB / 1.077 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009/0.3298, allocations: 222.8 kB / 1.078 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00164/0.3315, allocations: 0.5482 MB / 1.078 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.3332, allocations: 0.6361 MB / 1.079 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001446/0.3347, allocations: 1.302 MB / 1.08 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/0.3351, allocations: 288.1 kB / 1.08 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006301/0.3358, allocations: 386.2 kB / 1.081 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004074/0.3362, allocations: 322.5 kB / 1.081 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.3362, allocations: 12 kB / 1.081 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.3372, allocations: 0.5965 MB / 1.082 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.3374, allocations: 91.53 kB / 1.082 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.3376, allocations: 236.4 kB / 1.082 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008666/0.3385, allocations: 0.7281 MB / 1.083 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.3385, allocations: 0 / 1.083 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3385, allocations: 0 / 1.083 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.3385, allocations: 4 kB / 1.083 GB, free: 12.78 MB / 0.8419 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.001077/0.3396, allocations: 0.7475 MB / 1.083 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3396, allocations: 8.031 kB / 1.083 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.3397, allocations: 64.22 kB / 1.084 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005256/0.3403, allocations: 417.3 kB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.3403, allocations: 24.38 kB / 1.084 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.3403, allocations: 28 kB / 1.084 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.3408, allocations: 219.2 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.3408, allocations: 0 / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.3408, allocations: 4 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3408, allocations: 4 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.3412, allocations: 177.6 kB / 1.084 GB, free: 11.01 MB / 0.8419 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.001534/0.3428, allocations: 0.9535 MB / 1.085 GB, free: 9.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.3431, allocations: 142.5 kB / 1.085 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.3433, allocations: 76.81 kB / 1.085 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002737/0.3435, allocations: 336.4 kB / 1.086 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.3436, allocations: 30.56 kB / 1.086 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.3436, allocations: 0 / 1.086 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006371/0.3442, allocations: 261 kB / 1.086 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.3443, allocations: 59.34 kB / 1.086 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.3448, allocations: 470 kB / 1.087 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.3448, allocations: 37.64 kB / 1.087 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.345, allocations: 232.6 kB / 1.087 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.3451, allocations: 47.36 kB / 1.087 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.3451, allocations: 29.7 kB / 1.087 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3452, allocations: 350.7 kB / 1.087 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.3454, allocations: 75.95 kB / 1.087 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.3457, allocations: 162.4 kB / 1.087 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.3461, allocations: 175.7 kB / 1.088 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3461, allocations: 0 / 1.088 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005372/0.3466, allocations: 266.4 kB / 1.088 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.3467, allocations: 102.7 kB / 1.088 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3467, allocations: 4 kB / 1.088 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3467, allocations: 0 / 1.088 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.347, allocations: 47.91 kB / 1.088 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.347, allocations: 7.938 kB / 1.088 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.3474, allocations: 47.72 kB / 1.088 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.3474, allocations: 12 kB / 1.088 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.3474, allocations: 5.875 kB / 1.088 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004325/0.3479, allocations: 187.8 kB / 1.088 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-06/0.3479, allocations: 0 / 1.088 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.731e-06/0.3479, allocations: 4.094 kB / 1.088 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.3481, allocations: 51.84 kB / 1.088 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3481, allocations: 4 kB / 1.088 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.3484, allocations: 43.72 kB / 1.088 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3485, allocations: 12 kB / 1.088 GB, free: 6.57 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.3487, allocations: 242.5 kB / 1.089 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.32e-05/0.3487, allocations: 39.53 kB / 1.089 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005546/0.3493, allocations: 261.2 kB / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3493, allocations: 3.984 kB / 1.089 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3493, allocations: 4 kB / 1.089 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3493, allocations: 0 / 1.089 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.3504, allocations: 0.716 MB / 1.09 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.3505, allocations: 12.12 kB / 1.09 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.3506, allocations: 31.92 kB / 1.09 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3506, allocations: 192 / 1.09 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.3506, allocations: 11.98 kB / 1.09 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3506, allocations: 4 kB / 1.09 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3507, allocations: 3.938 kB / 1.09 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.3512, allocations: 351.7 kB / 1.09 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.3514, allocations: 148.4 kB / 1.09 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.3514, allocations: 4 kB / 1.09 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.3517, allocations: 27.97 kB / 1.09 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.975e-05/0.3518, allocations: 11.92 kB / 1.09 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.3518, allocations: 12 kB / 1.09 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004121/0.3522, allocations: 330.9 kB / 1.091 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3522, allocations: 4 kB / 1.091 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000718/0.3529, allocations: 207.6 kB / 1.091 GB, free: 4.047 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/0.354, allocations: 480 kB / 1.091 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006472/0.3547, allocations: 281.1 kB / 1.091 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3547, allocations: 0 / 1.091 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.3549, allocations: 91.83 kB / 1.092 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.3563, allocations: 215.4 kB / 1.092 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.3576, allocations: 0.8662 MB / 1.093 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.358, allocations: 0.8194 MB / 1.093 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003113/0.3583, allocations: 91.75 kB / 1.093 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.421e-05/0.3584, allocations: 39.44 kB / 1.094 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.3584, allocations: 0 / 1.094 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of Templates: time 0.01508/0.3735, allocations: 8.29 MB / 1.102 GB, free: 9.086 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches