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.001586/0.001586, allocations: 83.11 kB / 19.18 MB, free: 2.516 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.001737/0.001737, allocations: 161.8 kB / 22.46 MB, free: 5.375 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.393/1.393, allocations: 177.1 MB / 202.8 MB, free: 9.16 MB / 190.1 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.7309/0.7309, allocations: 80.21 MB / 339.4 MB, free: 10.88 MB / 318.1 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.392e-06/1.392e-06, allocations: 0 / 0.4928 GB, free: 25.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.182e-05, allocations: 2.281 kB / 0.4929 GB, free: 25.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02272/0.02274, allocations: 29.61 MB / 0.5218 GB, free: 5.852 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008392/0.03114, allocations: 8.12 MB / 0.5297 GB, free: 412 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009183/0.03205, allocations: 56.47 kB / 0.5297 GB, free: 376 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.03329, allocations: 489.1 kB / 0.5302 GB, free: 116 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002403/0.0357, allocations: 0.8799 MB / 0.5311 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001996/0.03769, allocations: 0.7214 MB / 0.5318 GB, free: 15.16 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.03982, allocations: 1.621 MB / 0.5334 GB, free: 14.31 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003783/0.0402, allocations: 182.2 kB / 0.5335 GB, free: 14.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.04171, allocations: 0.906 MB / 0.5344 GB, free: 13.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006703/0.04238, allocations: 434.8 kB / 0.5348 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.04251, allocations: 79.5 kB / 0.5349 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.04383, allocations: 486.8 kB / 0.5354 GB, free: 13.58 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.04406, allocations: 209.5 kB / 0.5356 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004741/0.04454, allocations: 375.7 kB / 0.5359 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002267/0.0468, allocations: 1.416 MB / 0.5373 GB, free: 12.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.04681, allocations: 0 / 0.5373 GB, free: 12.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.04681, allocations: 0 / 0.5373 GB, free: 12.72 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.04682, allocations: 5.312 kB / 0.5373 GB, free: 12.71 MB / 462.1 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.002752/0.04958, allocations: 1.389 MB / 0.5387 GB, free: 11.79 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.04961, allocations: 9.938 kB / 0.5387 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003621/0.04997, allocations: 142.2 kB / 0.5388 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.05126, allocations: 0.6756 MB / 0.5395 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.415e-05/0.05131, allocations: 58 kB / 0.5395 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.05144, allocations: 87.36 kB / 0.5396 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.053, allocations: 1.001 MB / 0.5406 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.05302, allocations: 5.156 kB / 0.5406 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.943e-05/0.05311, allocations: 34.92 kB / 0.5406 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.05313, allocations: 18.77 kB / 0.5407 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.05434, allocations: 0.6365 MB / 0.5413 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004098/0.05844, allocations: 2.248 MB / 0.5435 GB, free: 9.062 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.05962, allocations: 0.548 MB / 0.544 GB, free: 8.809 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000503/0.06012, allocations: 250.9 kB / 0.5442 GB, free: 8.684 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002102/0.06222, allocations: 0.9935 MB / 0.5452 GB, free: 7.957 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008187/0.06304, allocations: 0.5442 MB / 0.5457 GB, free: 7.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.605e-06/0.06304, allocations: 0 / 0.5457 GB, free: 7.484 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.00415/0.06719, allocations: 1.853 MB / 0.5476 GB, free: 6.367 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/0.06727, allocations: 115.2 kB / 0.5477 GB, free: 6.238 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007913/0.06806, allocations: 0.6189 MB / 0.5483 GB, free: 5.875 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.365e-05/0.06813, allocations: 37.27 kB / 0.5483 GB, free: 5.836 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000409/0.06854, allocations: 458.9 kB / 0.5487 GB, free: 5.434 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002052/0.06874, allocations: 232.1 kB / 0.549 GB, free: 5.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.06894, allocations: 124.9 kB / 0.5491 GB, free: 5.152 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.06911, allocations: 332.9 kB / 0.5494 GB, free: 4.828 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004717/0.06958, allocations: 238.7 kB / 0.5496 GB, free: 4.695 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.07021, allocations: 420 kB / 0.55 GB, free: 4.352 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.07129, allocations: 0.5793 MB / 0.5506 GB, free: 3.902 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.0713, allocations: 3.938 kB / 0.5506 GB, free: 3.898 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001698/0.07299, allocations: 0.8326 MB / 0.5514 GB, free: 3.043 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.447e-05/0.07304, allocations: 37.69 kB / 0.5515 GB, free: 3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.07305, allocations: 4 kB / 0.5515 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.07346, allocations: 101 kB / 0.5516 GB, free: 2.895 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.07398, allocations: 127.8 kB / 0.5517 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/0.07628, allocations: 1.836 MB / 0.5535 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.07681, allocations: 23.98 kB / 0.5535 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.395e-05/0.07688, allocations: 28 kB / 0.5535 GB, free: 0.7773 MB / 462.1 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.0004404/0.07732, allocations: 233.5 kB / 0.5537 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.07747, allocations: 87.44 kB / 0.5538 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/0.07928, allocations: 0.8192 MB / 0.5546 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.07929, allocations: 8 kB / 0.5546 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.07929, allocations: 0 / 0.5546 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.0793, allocations: 7.984 kB / 0.5546 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/0.08197, allocations: 1.392 MB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.08197, allocations: 4 kB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.08246, allocations: 112 kB / 0.5561 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003451/0.0828, allocations: 104.6 kB / 0.5562 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.08285, allocations: 20 kB / 0.5562 GB, free: 13.92 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.08499, allocations: 1.827 MB / 0.558 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.08499, allocations: 4.031 kB / 0.558 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.08702, allocations: 1.072 MB / 0.5591 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.08733, allocations: 131.4 kB / 0.5592 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.9e-05/0.08743, allocations: 12 kB / 0.5592 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.08785, allocations: 31.97 kB / 0.5592 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.08801, allocations: 64.33 kB / 0.5593 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.293e-05/0.08807, allocations: 23.98 kB / 0.5593 GB, free: 10.63 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.08865, allocations: 439 kB / 0.5597 GB, free: 10.21 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.08865, allocations: 0 / 0.5597 GB, free: 10.21 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009795/0.08963, allocations: 283.7 kB / 0.56 GB, free: 9.93 MB / 478.1 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.0006046/0.09023, allocations: 350.9 kB / 0.5603 GB, free: 9.578 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.09179, allocations: 0.7735 MB / 0.5611 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.09179, allocations: 0 / 0.5611 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008717/0.09266, allocations: 449.6 kB / 0.5615 GB, free: 8.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.09413, allocations: 306.1 kB / 0.5618 GB, free: 8.031 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/0.09748, allocations: 1.735 MB / 0.5635 GB, free: 6.258 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.09792, allocations: 416.9 kB / 0.5639 GB, free: 5.816 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004839/0.0984, allocations: 145.9 kB / 0.564 GB, free: 5.672 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.0986, allocations: 76.47 kB / 0.5641 GB, free: 5.598 MB / 478.1 MB Notification: Performance of SimCode: time 8.71e-07/0.0986, allocations: 0 / 0.5641 GB, free: 5.598 MB / 478.1 MB Notification: Performance of Templates: time 0.02766/0.1263, allocations: 15.36 MB / 0.5791 GB, free: 6.492 MB / 494.1 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: 5.605955272912979]