Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.00193/0.00193, allocations: 88.72 kB / 19.44 MB, free: 352 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.002652/0.002652, allocations: 157.7 kB / 22.75 MB, free: 1.68 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.449/1.449, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.022/1.022, allocations: 118.6 MB / 378.2 MB, free: 1.453 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 482.9 MB, free: 8.332 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.91e-05, allocations: 2.312 kB / 482.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03666/0.03669, allocations: 29.7 MB / 0.5005 GB, free: 2.906 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.05125, allocations: 8.191 MB / 0.5085 GB, free: 11.1 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.05264, allocations: 59.44 kB / 0.5086 GB, free: 11.04 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.05423, allocations: 488.3 kB / 0.5091 GB, free: 10.56 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003084/0.05731, allocations: 0.8997 MB / 0.5099 GB, free: 9.652 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002524/0.05983, allocations: 0.7433 MB / 0.5107 GB, free: 8.906 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002834/0.06267, allocations: 1.691 MB / 0.5123 GB, free: 7.203 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004754/0.06314, allocations: 186.5 kB / 0.5125 GB, free: 7.012 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001909/0.06505, allocations: 0.9427 MB / 0.5134 GB, free: 6.066 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007439/0.0658, allocations: 434.6 kB / 0.5138 GB, free: 5.641 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.06594, allocations: 83.94 kB / 0.5139 GB, free: 5.559 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.06745, allocations: 491.1 kB / 0.5144 GB, free: 5.078 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.06771, allocations: 215 kB / 0.5146 GB, free: 4.867 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005541/0.06827, allocations: 379 kB / 0.5149 GB, free: 4.496 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003191/0.07146, allocations: 1.491 MB / 0.5164 GB, free: 3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.07146, allocations: 0 / 0.5164 GB, free: 3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.07146, allocations: 0 / 0.5164 GB, free: 3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.07148, allocations: 0 / 0.5164 GB, free: 3 MB / 442.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.003087/0.07457, allocations: 1.441 MB / 0.5178 GB, free: 1.512 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.07461, allocations: 8.031 kB / 0.5178 GB, free: 1.504 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005355/0.07515, allocations: 216 kB / 0.518 GB, free: 1.293 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.07672, allocations: 0.7884 MB / 0.5188 GB, free: 480 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.198e-05/0.0768, allocations: 66.3 kB / 0.5189 GB, free: 416 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.07695, allocations: 84.33 kB / 0.5189 GB, free: 332 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.07875, allocations: 1.005 MB / 0.5199 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.07877, allocations: 7.938 kB / 0.5199 GB, free: 15.24 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.07886, allocations: 32 kB / 0.52 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.07888, allocations: 20 kB / 0.52 GB, free: 15.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.08023, allocations: 0.6363 MB / 0.5206 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00477/0.085, allocations: 2.248 MB / 0.5228 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.08629, allocations: 0.5141 MB / 0.5233 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.08683, allocations: 239.4 kB / 0.5235 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002278/0.08911, allocations: 0.9441 MB / 0.5244 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009326/0.09004, allocations: 0.5311 MB / 0.525 GB, free: 9.941 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 1.893e-06/0.09004, allocations: 0 / 0.525 GB, free: 9.941 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.004662/0.0947, allocations: 1.846 MB / 0.5268 GB, free: 8.059 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.09481, allocations: 123.4 kB / 0.5269 GB, free: 7.914 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.09583, allocations: 0.6653 MB / 0.5275 GB, free: 7.238 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.404e-05/0.09591, allocations: 45.64 kB / 0.5276 GB, free: 7.188 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005074/0.09641, allocations: 472.6 kB / 0.528 GB, free: 6.719 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.09667, allocations: 233.9 kB / 0.5283 GB, free: 6.488 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.09691, allocations: 126.7 kB / 0.5284 GB, free: 6.359 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.09712, allocations: 334 kB / 0.5287 GB, free: 6.027 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005104/0.09763, allocations: 223.6 kB / 0.5289 GB, free: 5.801 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.09863, allocations: 480.8 kB / 0.5294 GB, free: 5.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.09979, allocations: 0.5555 MB / 0.5299 GB, free: 4.652 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.09979, allocations: 0 / 0.5299 GB, free: 4.652 MB / 458.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001894/0.1017, allocations: 0.8558 MB / 0.5307 GB, free: 3.773 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.1017, allocations: 37.69 kB / 0.5308 GB, free: 3.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.1018, allocations: 4 kB / 0.5308 GB, free: 3.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005542/0.1023, allocations: 113 kB / 0.5309 GB, free: 3.613 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.1029, allocations: 127.8 kB / 0.531 GB, free: 3.488 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.1055, allocations: 1.839 MB / 0.5328 GB, free: 1.547 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/0.106, allocations: 31.98 kB / 0.5328 GB, free: 1.516 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.652e-05/0.1061, allocations: 31.92 kB / 0.5329 GB, free: 1.484 MB / 458.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.0004301/0.1065, allocations: 221.8 kB / 0.5331 GB, free: 1.258 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.1068, allocations: 123.3 kB / 0.5332 GB, free: 1.137 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.1086, allocations: 0.8047 MB / 0.534 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.1086, allocations: 7.938 kB / 0.534 GB, free: 316 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1086, allocations: 4 kB / 0.534 GB, free: 312 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1086, allocations: 3.984 kB / 0.534 GB, free: 308 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002815/0.1115, allocations: 1.349 MB / 0.5353 GB, free: 14.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1115, allocations: 0 / 0.5353 GB, free: 14.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/0.112, allocations: 111.8 kB / 0.5354 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004639/0.1124, allocations: 108.8 kB / 0.5355 GB, free: 14.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.356e-05/0.1125, allocations: 19.98 kB / 0.5355 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002785/0.1153, allocations: 1.851 MB / 0.5374 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1153, allocations: 4.031 kB / 0.5374 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.1176, allocations: 1.049 MB / 0.5384 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003586/0.1179, allocations: 143.3 kB / 0.5385 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.118, allocations: 19.94 kB / 0.5385 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.1185, allocations: 27.97 kB / 0.5386 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.1186, allocations: 56.34 kB / 0.5386 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.1187, allocations: 27.97 kB / 0.5386 GB, free: 11.35 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007128/0.1194, allocations: 467 kB / 0.5391 GB, free: 10.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1194, allocations: 4 kB / 0.5391 GB, free: 10.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009864/0.1204, allocations: 283.8 kB / 0.5394 GB, free: 10.62 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.0006587/0.121, allocations: 354.6 kB / 0.5397 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.1228, allocations: 0.7531 MB / 0.5404 GB, free: 9.492 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1228, allocations: 3.938 kB / 0.5404 GB, free: 9.488 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009382/0.1237, allocations: 429.1 kB / 0.5409 GB, free: 9.055 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.1253, allocations: 330.1 kB / 0.5412 GB, free: 8.754 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.129, allocations: 1.799 MB / 0.5429 GB, free: 6.906 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007923/0.1298, allocations: 434.1 kB / 0.5433 GB, free: 6.453 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.1304, allocations: 153 kB / 0.5435 GB, free: 6.309 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.1306, allocations: 80.47 kB / 0.5436 GB, free: 6.23 MB / 474.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1306, allocations: 4 kB / 0.5436 GB, free: 6.227 MB / 474.7 MB Notification: Performance of Templates: time 0.03225/0.1629, allocations: 15.68 MB / 0.5589 GB, free: 6.887 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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.237803312949836]