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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001163/0.001163, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001371/0.001372, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.762/2.762, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005015/0.0005015, allocations: 14.78 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4309/0.4314, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01579/0.4473, allocations: 14.22 MB / 1.072 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006682/0.454, allocations: 4.058 MB / 1.076 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006449/0.4547, allocations: 15.88 kB / 1.076 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000941/0.4556, allocations: 198.9 kB / 1.076 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001601/0.4572, allocations: 493.4 kB / 1.077 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.4592, allocations: 0.5895 MB / 1.077 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001547/0.4607, allocations: 1.126 MB / 1.078 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004489/0.4612, allocations: 262.7 kB / 1.078 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007411/0.462, allocations: 374.4 kB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.4624, allocations: 298.7 kB / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.4625, allocations: 16 kB / 1.079 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.4636, allocations: 0.5341 MB / 1.08 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.4637, allocations: 87.59 kB / 1.08 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.4639, allocations: 105.5 kB / 1.08 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006783/0.4646, allocations: 0.5261 MB / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4646, allocations: 0 / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4646, allocations: 0 / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.4646, allocations: 0 / 1.08 GB, free: 14.41 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.001118/0.4657, allocations: 0.7512 MB / 1.081 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.4658, allocations: 12.03 kB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.691e-05/0.4659, allocations: 51.34 kB / 1.081 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.4665, allocations: 404.9 kB / 1.082 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.4665, allocations: 20.44 kB / 1.082 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.217e-05/0.4666, allocations: 24 kB / 1.082 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.467, allocations: 219.2 kB / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.467, allocations: 3.938 kB / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.4671, allocations: 15.98 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.4671, allocations: 8 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.4675, allocations: 169.6 kB / 1.082 GB, free: 12.65 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.001608/0.4691, allocations: 0.9458 MB / 1.083 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.4694, allocations: 142.5 kB / 1.083 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.4696, allocations: 75.45 kB / 1.083 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003131/0.4699, allocations: 336.4 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.4699, allocations: 34.56 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 2.515e-06/0.4699, allocations: 0 / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006061/0.4705, allocations: 257 kB / 1.084 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.4706, allocations: 59.41 kB / 1.084 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005236/0.4711, allocations: 477.9 kB / 1.084 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.4712, allocations: 33.7 kB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.4713, allocations: 224.6 kB / 1.084 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.4714, allocations: 47.36 kB / 1.085 GB, free: 9.848 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.4714, allocations: 4 kB / 1.085 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4716, allocations: 354.8 kB / 1.085 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.4717, allocations: 71.95 kB / 1.085 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.472, allocations: 147.7 kB / 1.085 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.4722, allocations: 85.62 kB / 1.085 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4722, allocations: 3.984 kB / 1.085 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004779/0.4727, allocations: 261 kB / 1.085 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.931e-05/0.4727, allocations: 116.7 kB / 1.086 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4728, allocations: 4 kB / 1.086 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.4728, allocations: 4 kB / 1.086 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.473, allocations: 47.91 kB / 1.086 GB, free: 8.719 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.473, allocations: 7.984 kB / 1.086 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.4734, allocations: 39.81 kB / 1.086 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.273e-05/0.4734, allocations: 15.94 kB / 1.086 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.4734, allocations: 4 kB / 1.086 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003936/0.4738, allocations: 187.8 kB / 1.086 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.4738, allocations: 4 kB / 1.086 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-06/0.4739, allocations: 0 / 1.086 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.474, allocations: 47.91 kB / 1.086 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.4741, allocations: 4 kB / 1.086 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.4743, allocations: 47.89 kB / 1.086 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.4744, allocations: 11.94 kB / 1.086 GB, free: 8.355 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002026/0.4746, allocations: 233.1 kB / 1.086 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.015e-05/0.4747, allocations: 51.38 kB / 1.086 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005485/0.4752, allocations: 262.6 kB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4752, allocations: 0 / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4752, allocations: 0 / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.4753, allocations: 8 kB / 1.086 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.4763, allocations: 0.7083 MB / 1.087 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.4763, allocations: 3.984 kB / 1.087 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.4765, allocations: 31.92 kB / 1.087 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.4765, allocations: 4 kB / 1.087 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.4765, allocations: 8 kB / 1.087 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.4765, allocations: 0 / 1.087 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.4766, allocations: 7.953 kB / 1.087 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.477, allocations: 350.3 kB / 1.088 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.4772, allocations: 144.5 kB / 1.088 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.4772, allocations: 4 kB / 1.088 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.4775, allocations: 27.91 kB / 1.088 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.025e-05/0.4775, allocations: 23.88 kB / 1.088 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.4775, allocations: 8 kB / 1.088 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003555/0.4779, allocations: 330.9 kB / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4779, allocations: 0 / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006764/0.4786, allocations: 199.7 kB / 1.088 GB, free: 5.852 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 (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.001232/0.4798, allocations: 472.3 kB / 1.089 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006716/0.4805, allocations: 287.5 kB / 1.089 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4805, allocations: 0 / 1.089 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.4807, allocations: 87.89 kB / 1.089 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.482, allocations: 226.2 kB / 1.089 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.4833, allocations: 0.8368 MB / 1.09 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.4837, allocations: 0.8233 MB / 1.091 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003279/0.4841, allocations: 91.39 kB / 1.091 GB, free: 3.117 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.4841, allocations: 39.44 kB / 1.091 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.4842, allocations: 0 / 1.091 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of Templates: time 0.01568/0.4998, allocations: 8.073 MB / 1.099 GB, free: 11.14 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