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.0007942/0.0007942, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007778/0.0007778, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8562/0.8562, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.496/0.496, allocations: 80.18 MB / 340.1 MB, free: 7.551 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.683e-06/1.683e-06, allocations: 0 / 0.4936 GB, free: 6.332 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.554e-05, allocations: 4.859 kB / 0.4936 GB, free: 6.328 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01969/0.01971, allocations: 29.61 MB / 0.5225 GB, free: 10.3 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.007081/0.02679, allocations: 8.122 MB / 0.5304 GB, free: 2.148 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005889/0.02738, allocations: 55.5 kB / 0.5305 GB, free: 2.094 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008202/0.0282, allocations: 484.3 kB / 0.5309 GB, free: 1.617 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00142/0.02962, allocations: 0.8805 MB / 0.5318 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.0307, allocations: 0.7232 MB / 0.5325 GB, free: 8 kB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.03181, allocations: 1.621 MB / 0.5341 GB, free: 14.38 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.03206, allocations: 186.4 kB / 0.5343 GB, free: 14.18 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.0332, allocations: 0.9037 MB / 0.5352 GB, free: 13.28 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.03357, allocations: 430.6 kB / 0.5356 GB, free: 12.86 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 7.208e-05/0.03364, allocations: 76 kB / 0.5356 GB, free: 12.78 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006726/0.03432, allocations: 495.1 kB / 0.5361 GB, free: 12.3 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.03445, allocations: 215 kB / 0.5363 GB, free: 12.09 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002454/0.0347, allocations: 371.1 kB / 0.5367 GB, free: 11.72 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.0359, allocations: 1.417 MB / 0.5381 GB, free: 10.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.0359, allocations: 3.984 kB / 0.5381 GB, free: 10.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.03591, allocations: 0 / 0.5381 GB, free: 10.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.03591, allocations: 0 / 0.5381 GB, free: 10.3 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.001576/0.03749, allocations: 1.383 MB / 0.5394 GB, free: 8.871 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.03753, allocations: 13.47 kB / 0.5394 GB, free: 8.859 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.03773, allocations: 144.1 kB / 0.5396 GB, free: 8.719 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007641/0.0385, allocations: 0.6789 MB / 0.5402 GB, free: 8.012 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.03854, allocations: 58.38 kB / 0.5403 GB, free: 7.957 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.222e-05/0.03862, allocations: 83.88 kB / 0.5404 GB, free: 7.875 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.03979, allocations: 1.001 MB / 0.5413 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.03981, allocations: 0 / 0.5413 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.03985, allocations: 32 kB / 0.5414 GB, free: 6.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.03987, allocations: 19.98 kB / 0.5414 GB, free: 6.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007151/0.04058, allocations: 0.6441 MB / 0.542 GB, free: 6.109 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.04288, allocations: 2.241 MB / 0.5442 GB, free: 3.816 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.04358, allocations: 0.5515 MB / 0.5447 GB, free: 3.262 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.04386, allocations: 251.6 kB / 0.545 GB, free: 3.016 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001127/0.04499, allocations: 0.987 MB / 0.5459 GB, free: 2.008 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004785/0.04546, allocations: 0.5506 MB / 0.5465 GB, free: 1.391 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 1.653e-06/0.04547, allocations: 0 / 0.5465 GB, free: 1.391 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.002294/0.04776, allocations: 1.846 MB / 0.5483 GB, free: 15.51 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003028/0.04806, allocations: 111.5 kB / 0.5484 GB, free: 15.38 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000447/0.04851, allocations: 0.6218 MB / 0.549 GB, free: 14.74 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.04854, allocations: 41.73 kB / 0.549 GB, free: 14.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.04876, allocations: 460.5 kB / 0.5495 GB, free: 14.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.04887, allocations: 226 kB / 0.5497 GB, free: 14.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.04898, allocations: 122.6 kB / 0.5498 GB, free: 13.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.687e-05/0.04906, allocations: 345.8 kB / 0.5501 GB, free: 13.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.04933, allocations: 239.6 kB / 0.5504 GB, free: 13.31 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.04965, allocations: 415.7 kB / 0.5508 GB, free: 12.84 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.05024, allocations: 0.5712 MB / 0.5513 GB, free: 12.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.05024, allocations: 0 / 0.5513 GB, free: 12.22 MB / 474.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0008601/0.0511, allocations: 0.8444 MB / 0.5521 GB, free: 11.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.05113, allocations: 33.7 kB / 0.5522 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.05114, allocations: 0 / 0.5522 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.05138, allocations: 100.8 kB / 0.5523 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.05163, allocations: 139.7 kB / 0.5524 GB, free: 11.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.05288, allocations: 1.828 MB / 0.5542 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.05306, allocations: 32.05 kB / 0.5542 GB, free: 9.113 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/0.0531, allocations: 28 kB / 0.5543 GB, free: 9.086 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.0002181/0.05332, allocations: 229.8 kB / 0.5545 GB, free: 8.852 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.24e-05/0.05339, allocations: 95.36 kB / 0.5546 GB, free: 8.758 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.0546, allocations: 0.825 MB / 0.5554 GB, free: 7.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.05461, allocations: 4 kB / 0.5554 GB, free: 7.906 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.05461, allocations: 4 kB / 0.5554 GB, free: 7.902 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.05462, allocations: 7.922 kB / 0.5554 GB, free: 7.895 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.056, allocations: 1.384 MB / 0.5567 GB, free: 6.461 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.056, allocations: 0 / 0.5567 GB, free: 6.461 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.05624, allocations: 103.9 kB / 0.5568 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.05642, allocations: 104.8 kB / 0.5569 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.05645, allocations: 19.98 kB / 0.557 GB, free: 6.234 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.05761, allocations: 1.847 MB / 0.5588 GB, free: 4.281 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.05761, allocations: 0 / 0.5588 GB, free: 4.281 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.05869, allocations: 1.072 MB / 0.5598 GB, free: 3.184 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.05885, allocations: 127.5 kB / 0.5599 GB, free: 3.059 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.0589, allocations: 15.95 kB / 0.5599 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.05909, allocations: 27.97 kB / 0.56 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-05/0.05918, allocations: 56.34 kB / 0.56 GB, free: 2.961 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.05921, allocations: 31.97 kB / 0.5601 GB, free: 2.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000319/0.05953, allocations: 439 kB / 0.5605 GB, free: 2.508 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05953, allocations: 0 / 0.5605 GB, free: 2.508 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0005012/0.06003, allocations: 287.7 kB / 0.5607 GB, free: 2.227 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.0003733/0.06041, allocations: 347 kB / 0.5611 GB, free: 1.879 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000875/0.06128, allocations: 0.7697 MB / 0.5618 GB, free: 1.074 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.06128, allocations: 4.062 kB / 0.5618 GB, free: 1.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006252/0.06191, allocations: 441.2 kB / 0.5623 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007571/0.06267, allocations: 301.6 kB / 0.5625 GB, free: 348 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.06459, allocations: 1.768 MB / 0.5643 GB, free: 14.53 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.06484, allocations: 413 kB / 0.5647 GB, free: 14.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.06497, allocations: 88.41 kB / 0.5647 GB, free: 14 MB / 490.7 MB Notification: Performance of SimCode: time 4.91e-07/0.06498, allocations: 0 / 0.5647 GB, free: 14 MB / 490.7 MB Notification: Performance of Templates: time 0.01422/0.0792, allocations: 18.37 MB / 0.5827 GB, free: 11.66 MB / 0.4948 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=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.477401724085212]