Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.002207/0.002207, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.002146/0.002146, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.596/1.596, allocations: 177.1 MB / 203.1 MB, free: 5.555 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.081/1.081, allocations: 118.6 MB / 378.2 MB, free: 1.469 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 482.9 MB, free: 8.367 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.698e-05/2.885e-05, allocations: 2.312 kB / 482.9 MB, free: 8.363 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.04129/0.04132, allocations: 33.23 MB / 0.504 GB, free: 15.51 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.0567, allocations: 9.23 MB / 0.513 GB, free: 6.543 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.05816, allocations: 59.44 kB / 0.5131 GB, free: 6.484 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.06011, allocations: 488.2 kB / 0.5135 GB, free: 6.004 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00356/0.06367, allocations: 0.9076 MB / 0.5144 GB, free: 5.09 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002749/0.06641, allocations: 0.7511 MB / 0.5151 GB, free: 4.336 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003236/0.06965, allocations: 1.691 MB / 0.5168 GB, free: 2.633 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004709/0.07012, allocations: 186.5 kB / 0.517 GB, free: 2.445 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.07213, allocations: 0.9388 MB / 0.5179 GB, free: 1.504 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007868/0.07291, allocations: 438.6 kB / 0.5183 GB, free: 1.074 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.07307, allocations: 80 kB / 0.5184 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.07464, allocations: 495.1 kB / 0.5189 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.07491, allocations: 215 kB / 0.5191 GB, free: 308 kB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005894/0.0755, allocations: 383 kB / 0.5194 GB, free: 15.92 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003311/0.07881, allocations: 1.491 MB / 0.5209 GB, free: 14.43 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.07882, allocations: 0 / 0.5209 GB, free: 14.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.829e-06/0.07883, allocations: 4 kB / 0.5209 GB, free: 14.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.07884, allocations: 0 / 0.5209 GB, free: 14.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.003313/0.08216, allocations: 1.611 MB / 0.5225 GB, free: 12.76 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.08222, allocations: 16.02 kB / 0.5225 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000531/0.08275, allocations: 212 kB / 0.5227 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.08442, allocations: 0.7845 MB / 0.5234 GB, free: 11.72 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.114e-05/0.08449, allocations: 58.38 kB / 0.5235 GB, free: 11.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.08464, allocations: 92.27 kB / 0.5236 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.08643, allocations: 0.9763 MB / 0.5245 GB, free: 10.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.08646, allocations: 7.938 kB / 0.5245 GB, free: 10.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-05/0.08653, allocations: 28 kB / 0.5246 GB, free: 10.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.08656, allocations: 24 kB / 0.5246 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.0877, allocations: 495.7 kB / 0.5251 GB, free: 9.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005156/0.09285, allocations: 2.68 MB / 0.5277 GB, free: 7.238 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.09406, allocations: 0.5224 MB / 0.5282 GB, free: 6.707 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004782/0.09453, allocations: 233.5 kB / 0.5284 GB, free: 6.477 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00236/0.09689, allocations: 1.045 MB / 0.5294 GB, free: 5.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008992/0.09779, allocations: 0.5566 MB / 0.53 GB, free: 4.781 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.295e-06/0.0978, allocations: 0 / 0.53 GB, free: 4.781 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.004262/0.1021, allocations: 1.814 MB / 0.5318 GB, free: 2.922 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.1022, allocations: 111.5 kB / 0.5319 GB, free: 2.789 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.1033, allocations: 0.8315 MB / 0.5327 GB, free: 1.941 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.1034, allocations: 37.7 kB / 0.5327 GB, free: 1.898 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/0.1039, allocations: 0.5461 MB / 0.5332 GB, free: 1.344 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002568/0.1042, allocations: 246 kB / 0.5335 GB, free: 1.102 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002695/0.1045, allocations: 144.3 kB / 0.5336 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004441/0.1049, allocations: 0.516 MB / 0.5341 GB, free: 440 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.1054, allocations: 215.6 kB / 0.5343 GB, free: 216 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007221/0.1061, allocations: 0.5058 MB / 0.5348 GB, free: 15.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.1072, allocations: 0.5965 MB / 0.5354 GB, free: 14.96 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1072, allocations: 0 / 0.5354 GB, free: 14.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001761/0.1089, allocations: 0.8391 MB / 0.5362 GB, free: 14.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.971e-05/0.109, allocations: 38.03 kB / 0.5363 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.109, allocations: 8 kB / 0.5363 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005622/0.1096, allocations: 115.6 kB / 0.5364 GB, free: 13.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005206/0.1101, allocations: 135.8 kB / 0.5365 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.113, allocations: 2.377 MB / 0.5388 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005953/0.1136, allocations: 27.98 kB / 0.5388 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.1137, allocations: 31.94 kB / 0.5389 GB, free: 11.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005254/0.1142, allocations: 268.4 kB / 0.5391 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002199/0.1144, allocations: 119.4 kB / 0.5392 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.1162, allocations: 0.8248 MB / 0.5401 GB, free: 10 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.1162, allocations: 7.938 kB / 0.5401 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1162, allocations: 8 kB / 0.5401 GB, free: 9.984 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.1163, allocations: 3.984 kB / 0.5401 GB, free: 9.98 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003223/0.1195, allocations: 1.539 MB / 0.5416 GB, free: 8.387 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1195, allocations: 3.938 kB / 0.5416 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.1199, allocations: 107.9 kB / 0.5417 GB, free: 8.277 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004679/0.1204, allocations: 123.6 kB / 0.5418 GB, free: 8.152 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.1205, allocations: 16 kB / 0.5418 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.1232, allocations: 2.379 MB / 0.5441 GB, free: 5.633 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/0.1232, allocations: 7.938 kB / 0.5441 GB, free: 5.625 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.1253, allocations: 1.083 MB / 0.5452 GB, free: 4.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003619/0.1256, allocations: 143.2 kB / 0.5453 GB, free: 4.359 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.1257, allocations: 12 kB / 0.5454 GB, free: 4.348 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.1261, allocations: 23.98 kB / 0.5454 GB, free: 4.324 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.1263, allocations: 56.39 kB / 0.5454 GB, free: 4.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-05/0.1263, allocations: 23.98 kB / 0.5455 GB, free: 4.246 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007428/0.1271, allocations: 0.538 MB / 0.546 GB, free: 3.715 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1271, allocations: 0 / 0.546 GB, free: 3.715 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009832/0.128, allocations: 279.8 kB / 0.5462 GB, free: 3.441 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006156/0.1287, allocations: 350.5 kB / 0.5466 GB, free: 3.094 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.1303, allocations: 0.8438 MB / 0.5474 GB, free: 2.211 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1303, allocations: 0 / 0.5474 GB, free: 2.211 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009045/0.1312, allocations: 0.5051 MB / 0.5479 GB, free: 1.688 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.1329, allocations: 327.9 kB / 0.5482 GB, free: 1.387 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.1365, allocations: 1.792 MB / 0.55 GB, free: 15.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.137, allocations: 438.2 kB / 0.5504 GB, free: 15.09 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005339/0.1376, allocations: 150.3 kB / 0.5505 GB, free: 14.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.1378, allocations: 80.47 kB / 0.5506 GB, free: 14.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.523e-06/0.1378, allocations: 0 / 0.5506 GB, free: 14.86 MB / 490.7 MB Notification: Performance of Templates: time 0.03401/0.1718, allocations: 15.75 MB / 0.566 GB, free: 15.45 MB / 0.4949 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.790557401953265]