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.001408/0.001408, allocations: 88.72 kB / 19.44 MB, free: 356 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.001733/0.001733, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.466/1.466, allocations: 177.1 MB / 203.1 MB, free: 5.59 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.03/1.03, allocations: 118.6 MB / 378.2 MB, free: 1.48 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.733e-06/1.733e-06, allocations: 0 / 482.9 MB, free: 8.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.727e-05, allocations: 9.547 kB / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.05108/0.0511, allocations: 29.69 MB / 0.5005 GB, free: 2.891 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.07072, allocations: 8.194 MB / 0.5085 GB, free: 11.11 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.07241, allocations: 59.44 kB / 0.5086 GB, free: 11.05 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.07485, allocations: 484.3 kB / 0.5091 GB, free: 10.57 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004421/0.07927, allocations: 0.8998 MB / 0.5099 GB, free: 9.668 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003311/0.08258, allocations: 0.7472 MB / 0.5107 GB, free: 8.918 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003891/0.08647, allocations: 1.699 MB / 0.5123 GB, free: 7.207 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007582/0.08723, allocations: 178.6 kB / 0.5125 GB, free: 7.023 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002943/0.09017, allocations: 0.9466 MB / 0.5134 GB, free: 6.074 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.09146, allocations: 442.6 kB / 0.5138 GB, free: 5.641 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002961/0.09176, allocations: 80 kB / 0.5139 GB, free: 5.562 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.09391, allocations: 483.2 kB / 0.5144 GB, free: 5.09 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003791/0.09429, allocations: 222.9 kB / 0.5146 GB, free: 4.871 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009907/0.09528, allocations: 375.1 kB / 0.515 GB, free: 4.504 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004372/0.09965, allocations: 1.495 MB / 0.5164 GB, free: 3.004 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.09966, allocations: 0 / 0.5164 GB, free: 3.004 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.09966, allocations: 0 / 0.5164 GB, free: 3.004 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.09968, allocations: 4 kB / 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.004199/0.1039, allocations: 1.437 MB / 0.5178 GB, free: 1.516 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1039, allocations: 12.03 kB / 0.5178 GB, free: 1.504 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007243/0.1047, allocations: 216 kB / 0.518 GB, free: 1.293 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.1069, allocations: 0.7845 MB / 0.5188 GB, free: 484 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.107, allocations: 62.36 kB / 0.5189 GB, free: 424 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.1073, allocations: 84.33 kB / 0.5189 GB, free: 340 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002553/0.1098, allocations: 1.002 MB / 0.5199 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/0.1098, allocations: 3.938 kB / 0.5199 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.11, allocations: 32 kB / 0.52 GB, free: 15.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.763e-05/0.11, allocations: 20 kB / 0.52 GB, free: 15.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.1121, allocations: 0.6402 MB / 0.5206 GB, free: 14.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006567/0.1186, allocations: 2.252 MB / 0.5228 GB, free: 12.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.1205, allocations: 0.5158 MB / 0.5233 GB, free: 11.74 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.1215, allocations: 242.7 kB / 0.5235 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003192/0.1247, allocations: 0.9401 MB / 0.5245 GB, free: 10.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001272/0.1259, allocations: 0.5311 MB / 0.525 GB, free: 9.949 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.795e-06/0.1259, allocations: 4 kB / 0.525 GB, free: 9.945 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.00619/0.1321, allocations: 1.842 MB / 0.5268 GB, free: 8.066 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1322, allocations: 115.4 kB / 0.5269 GB, free: 7.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.1334, allocations: 0.6692 MB / 0.5275 GB, free: 7.25 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-05/0.1335, allocations: 41.7 kB / 0.5276 GB, free: 7.203 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.134, allocations: 480.6 kB / 0.528 GB, free: 6.727 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002556/0.1342, allocations: 233.9 kB / 0.5283 GB, free: 6.496 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.1345, allocations: 122.7 kB / 0.5284 GB, free: 6.371 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.1347, allocations: 337.9 kB / 0.5287 GB, free: 6.035 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.1352, allocations: 219.6 kB / 0.5289 GB, free: 5.812 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007656/0.136, allocations: 476.8 kB / 0.5294 GB, free: 5.266 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1371, allocations: 0.5555 MB / 0.5299 GB, free: 4.668 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1371, allocations: 4 kB / 0.5299 GB, free: 4.664 MB / 458.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001903/0.139, allocations: 0.856 MB / 0.5307 GB, free: 3.785 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.116e-05/0.1391, allocations: 41.77 kB / 0.5308 GB, free: 3.738 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1391, allocations: 4 kB / 0.5308 GB, free: 3.734 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005435/0.1396, allocations: 112.7 kB / 0.5309 GB, free: 3.621 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.1402, allocations: 131.8 kB / 0.531 GB, free: 3.492 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.1428, allocations: 1.835 MB / 0.5328 GB, free: 1.559 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005478/0.1433, allocations: 31.97 kB / 0.5328 GB, free: 1.527 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.319e-05/0.1434, allocations: 31.94 kB / 0.5329 GB, free: 1.496 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.000416/0.1438, allocations: 221.7 kB / 0.5331 GB, free: 1.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.144, allocations: 115.4 kB / 0.5332 GB, free: 1.156 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.1459, allocations: 0.8095 MB / 0.534 GB, free: 340 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1459, allocations: 7.938 kB / 0.534 GB, free: 332 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1459, allocations: 4 kB / 0.534 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1459, allocations: 0 / 0.534 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.1487, allocations: 1.357 MB / 0.5353 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1487, allocations: 48 / 0.5353 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/0.1493, allocations: 115.8 kB / 0.5354 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004927/0.1497, allocations: 108.8 kB / 0.5355 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/0.1498, allocations: 19.98 kB / 0.5356 GB, free: 14.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00252/0.1523, allocations: 1.847 MB / 0.5374 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.1523, allocations: 4.031 kB / 0.5374 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.1547, allocations: 1.049 MB / 0.5384 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003587/0.1551, allocations: 143.3 kB / 0.5385 GB, free: 11.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1552, allocations: 15.94 kB / 0.5385 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.1556, allocations: 31.98 kB / 0.5386 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.1558, allocations: 64.27 kB / 0.5386 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.946e-05/0.1559, allocations: 23.98 kB / 0.5387 GB, free: 11.36 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007068/0.1566, allocations: 471 kB / 0.5391 GB, free: 10.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1566, allocations: 0 / 0.5391 GB, free: 10.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00101/0.1576, 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.0006703/0.1583, allocations: 353.4 kB / 0.5397 GB, free: 10.28 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.16, allocations: 0.7605 MB / 0.5405 GB, free: 9.496 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.16, allocations: 0 / 0.5405 GB, free: 9.496 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009157/0.1609, allocations: 437.8 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.00151/0.1624, allocations: 317.9 kB / 0.5412 GB, free: 8.758 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.1661, allocations: 1.79 MB / 0.5429 GB, free: 6.922 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.1666, allocations: 434.2 kB / 0.5433 GB, free: 6.469 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005658/0.1672, allocations: 152.1 kB / 0.5435 GB, free: 6.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.1674, allocations: 80.47 kB / 0.5436 GB, free: 6.242 MB / 474.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1674, allocations: 4 kB / 0.5436 GB, free: 6.238 MB / 474.7 MB Notification: Performance of Templates: time 0.03148/0.1989, allocations: 15.68 MB / 0.5589 GB, free: 6.891 MB / 490.7 MB " [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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] 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.363519669044763]