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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002451/0.002451, allocations: 159.3 kB / 23.01 MB, free: 4.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.032/3.032, allocations: 394.2 MB / 0.6386 GB, free: 11.93 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 67.83 kB / 1.009 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9271/0.9294, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.0147/0.9441, allocations: 14.51 MB / 1.201 GB, free: 6.414 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.006235/0.9504, allocations: 4.1 MB / 1.205 GB, free: 3.703 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.9509, allocations: 23.69 kB / 1.205 GB, free: 3.688 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0008917/0.9518, allocations: 259.8 kB / 1.205 GB, free: 3.547 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.9533, allocations: 0.6734 MB / 1.206 GB, free: 3.164 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.9551, allocations: 0.7156 MB / 1.206 GB, free: 2.82 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.00119/0.9563, allocations: 1.03 MB / 1.207 GB, free: 2.344 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004563/0.9567, allocations: 275.9 kB / 1.208 GB, free: 2.215 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007998/0.9575, allocations: 499 kB / 1.208 GB, free: 1.996 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004412/0.958, allocations: 307.2 kB / 1.208 GB, free: 1.875 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 6.634e-05/0.958, allocations: 26.94 kB / 1.208 GB, free: 1.875 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.9591, allocations: 0.5355 MB / 1.209 GB, free: 1.727 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.9592, allocations: 111.3 kB / 1.209 GB, free: 1.66 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.9594, allocations: 186.2 kB / 1.209 GB, free: 1.562 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.9605, allocations: 0.7503 MB / 1.21 GB, free: 1.289 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.9605, allocations: 8.641 kB / 1.21 GB, free: 1.281 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9605, allocations: 0 / 1.21 GB, free: 1.281 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.9605, allocations: 0 / 1.21 GB, free: 1.281 MB / 1.076 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.001068/0.9616, allocations: 0.7682 MB / 1.211 GB, free: 0.707 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.9616, allocations: 9.141 kB / 1.211 GB, free: 0.707 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.9617, allocations: 59.73 kB / 1.211 GB, free: 0.6758 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000642/0.9623, allocations: 377.4 kB / 1.211 GB, free: 428 kB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.9624, allocations: 19.34 kB / 1.211 GB, free: 420 kB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.9624, allocations: 27.22 kB / 1.211 GB, free: 412 kB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.9628, allocations: 212.5 kB / 1.211 GB, free: 320 kB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.9628, allocations: 1.562 kB / 1.211 GB, free: 320 kB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.9629, allocations: 5.312 kB / 1.211 GB, free: 316 kB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.9629, allocations: 6.062 kB / 1.211 GB, free: 316 kB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/0.9632, allocations: 161.8 kB / 1.212 GB, free: 272 kB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.9647, allocations: 0.7129 MB / 1.212 GB, free: 15.84 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.965, allocations: 131.7 kB / 1.212 GB, free: 15.78 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.9652, allocations: 64.83 kB / 1.212 GB, free: 15.75 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.9653, allocations: 29 kB / 1.213 GB, free: 15.75 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.9653, allocations: 32.44 kB / 1.213 GB, free: 15.71 MB / 1.092 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.9653, allocations: 0 / 1.213 GB, free: 15.71 MB / 1.092 GB Notification: Performance of matching and sorting (n=14): time 0.0006421/0.966, allocations: 242.7 kB / 1.213 GB, free: 15.61 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.966, allocations: 52.66 kB / 1.213 GB, free: 15.55 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005238/0.9665, allocations: 439.9 kB / 1.213 GB, free: 15.34 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.9666, allocations: 32.05 kB / 1.213 GB, free: 15.31 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.9668, allocations: 235.5 kB / 1.214 GB, free: 15.12 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.9669, allocations: 50.08 kB / 1.214 GB, free: 15.08 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.967, allocations: 64.41 kB / 1.214 GB, free: 15.04 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.9671, allocations: 349.9 kB / 1.214 GB, free: 14.71 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.9673, allocations: 77.31 kB / 1.214 GB, free: 14.68 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003957/0.9677, allocations: 416.3 kB / 1.214 GB, free: 14.26 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003898/0.9681, allocations: 164.9 kB / 1.215 GB, free: 14.19 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9681, allocations: 1.594 kB / 1.215 GB, free: 14.19 MB / 1.092 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005438/0.9686, allocations: 248.4 kB / 1.215 GB, free: 14.08 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.9687, allocations: 5.25 kB / 1.215 GB, free: 14.08 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.9687, allocations: 1.812 kB / 1.215 GB, free: 14.08 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.9687, allocations: 1.094 kB / 1.215 GB, free: 14.08 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.9689, allocations: 50.48 kB / 1.215 GB, free: 14.07 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.9689, allocations: 5.219 kB / 1.215 GB, free: 14.07 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.9692, allocations: 35.64 kB / 1.215 GB, free: 14.05 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.9693, allocations: 12.84 kB / 1.215 GB, free: 14.05 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002906/0.9695, allocations: 189 kB / 1.215 GB, free: 13.93 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003931/0.9699, allocations: 422.9 kB / 1.216 GB, free: 13.5 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003427/0.9703, allocations: 172.2 kB / 1.216 GB, free: 13.41 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.395e-06/0.9703, allocations: 0.5156 kB / 1.216 GB, free: 13.41 MB / 1.092 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.000508/0.9708, allocations: 254.4 kB / 1.216 GB, free: 13.3 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.9708, allocations: 8.406 kB / 1.216 GB, free: 13.3 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-06/0.9708, allocations: 2.25 kB / 1.216 GB, free: 13.3 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/0.9708, allocations: 10.12 kB / 1.216 GB, free: 13.29 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.971, allocations: 41.44 kB / 1.216 GB, free: 13.29 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.971, allocations: 3.594 kB / 1.216 GB, free: 13.29 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.9713, allocations: 34.14 kB / 1.216 GB, free: 13.28 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.9713, allocations: 8.906 kB / 1.216 GB, free: 13.28 MB / 1.092 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.0001392/0.9715, allocations: 199.3 kB / 1.216 GB, free: 13.09 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.119e-05/0.9716, allocations: 40.97 kB / 1.216 GB, free: 13.06 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005767/0.9721, allocations: 246.6 kB / 1.216 GB, free: 12.95 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.9721, allocations: 2.109 kB / 1.216 GB, free: 12.95 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.9722, allocations: 1.219 kB / 1.216 GB, free: 12.95 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.9722, allocations: 1.359 kB / 1.216 GB, free: 12.95 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.9732, allocations: 0.6177 MB / 1.217 GB, free: 12.55 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.9732, allocations: 6.219 kB / 1.217 GB, free: 12.55 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.9733, allocations: 27.14 kB / 1.217 GB, free: 12.55 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.9733, allocations: 7.109 kB / 1.217 GB, free: 12.54 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.9733, allocations: 2.125 kB / 1.217 GB, free: 12.54 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.9733, allocations: 7.203 kB / 1.217 GB, free: 12.54 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.9734, allocations: 5.344 kB / 1.217 GB, free: 12.54 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.9739, allocations: 343.3 kB / 1.217 GB, free: 12.3 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.974, allocations: 60.2 kB / 1.218 GB, free: 12.27 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.974, allocations: 9.25 kB / 1.218 GB, free: 12.26 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.9742, allocations: 12.48 kB / 1.218 GB, free: 12.26 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.9743, allocations: 23.33 kB / 1.218 GB, free: 12.25 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.9743, allocations: 6.609 kB / 1.218 GB, free: 12.25 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0003636/0.9747, allocations: 308.5 kB / 1.218 GB, free: 12.1 MB / 1.092 GB Notification: Performance of sort global known variables: time 9e-08/0.9747, allocations: 0 / 1.218 GB, free: 12.1 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0007665/0.9754, allocations: 211.1 kB / 1.218 GB, free: 12.05 MB / 1.092 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.001782/0.9772, allocations: 0.4884 MB / 1.219 GB, free: 11.83 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0007608/0.978, allocations: 257.9 kB / 1.219 GB, free: 11.76 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.978, allocations: 4.062 kB / 1.219 GB, free: 11.76 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.9782, allocations: 83.95 kB / 1.219 GB, free: 11.73 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009426/0.9791, allocations: 171 kB / 1.219 GB, free: 11.68 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.9805, allocations: 0.7173 MB / 1.22 GB, free: 11.24 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.9807, allocations: 226.3 kB / 1.22 GB, free: 11.15 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0003067/0.981, allocations: 87.98 kB / 1.22 GB, free: 11.12 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.875e-05/0.9811, allocations: 35.12 kB / 1.22 GB, free: 11.11 MB / 1.092 GB Notification: Performance of SimCode: time 4.31e-07/0.9811, allocations: 0 / 1.22 GB, free: 11.11 MB / 1.092 GB Notification: Performance of Templates: time 0.0186/0.9997, allocations: 8.309 MB / 1.228 GB, free: 10.03 MB / 1.092 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile [Timeout 300] (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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.291721713962033]