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.0007507/0.0007507, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009384/0.001689, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007611/0.0007611, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008315/0.001593, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9697/0.9697, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09181/1.062, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.704/0.704, allocations: 118.7 MB / 362.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05232/0.7563, allocations: 35.84 MB / 398.4 MB, free: 13.25 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/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="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="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.593e-06/1.593e-06, allocations: 0 / 399.7 MB, free: 12 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087e-05/1.246e-05, allocations: 2.312 kB / 399.7 MB, free: 11.99 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.007097/0.007109, allocations: 9.391 MB / 409.1 MB, free: 2.559 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00301/0.01012, allocations: 2.531 MB / 411.6 MB, free: 20 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003658/0.01048, allocations: 55.55 kB / 411.7 MB, free: 15.96 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003244/0.01081, allocations: 221.8 kB / 411.9 MB, free: 15.75 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008614/0.01167, allocations: 0.6979 MB / 412.6 MB, free: 15.04 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007501/0.01242, allocations: 0.5064 MB / 413.1 MB, free: 14.54 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.01372, allocations: 1.684 MB / 414.8 MB, free: 12.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.01397, allocations: 204.4 kB / 415 MB, free: 12.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009302/0.0149, allocations: 0.9885 MB / 416 MB, free: 11.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003844/0.01529, allocations: 438.6 kB / 416.4 MB, free: 11.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.551e-05/0.01537, allocations: 84 kB / 416.5 MB, free: 11.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.01567, allocations: 203.8 kB / 416.7 MB, free: 10.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.01578, allocations: 163.2 kB / 416.8 MB, free: 10.76 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.01602, allocations: 315.3 kB / 417.2 MB, free: 10.45 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007703/0.01679, allocations: 0.9455 MB / 418.1 MB, free: 9.504 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.213e-05/0.01681, allocations: 0 / 418.1 MB, free: 9.504 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01681, allocations: 0 / 418.1 MB, free: 9.504 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.01682, allocations: 0 / 418.1 MB, free: 9.504 MB / 410.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.001683/0.01851, allocations: 1.718 MB / 419.8 MB, free: 7.734 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.569e-05/0.01853, allocations: 8.031 kB / 419.8 MB, free: 7.727 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.01874, allocations: 160.7 kB / 420 MB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007306/0.01948, allocations: 0.7013 MB / 420.7 MB, free: 6.824 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.01951, allocations: 58.38 kB / 420.7 MB, free: 6.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.437e-05/0.01958, allocations: 88.31 kB / 420.8 MB, free: 6.684 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005636/0.02015, allocations: 0.7542 MB / 421.6 MB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.02016, allocations: 8.188 kB / 421.6 MB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.0202, allocations: 31.94 kB / 421.6 MB, free: 5.816 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.02022, allocations: 20 kB / 421.6 MB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.02049, allocations: 240.6 kB / 421.9 MB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.02224, allocations: 1.659 MB / 423.5 MB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.02263, allocations: 390.8 kB / 423.9 MB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.02275, allocations: 126.8 kB / 424 MB, free: 3.348 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008157/0.02356, allocations: 0.6688 MB / 424.7 MB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.02383, allocations: 429.6 kB / 425.1 MB, free: 2.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.563e-06/0.02383, allocations: 0 / 425.1 MB, free: 2.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001412/0.02525, allocations: 0.9127 MB / 426 MB, free: 1.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.02528, allocations: 81.61 kB / 426.1 MB, free: 1.133 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.02561, allocations: 0.613 MB / 426.7 MB, free: 0.5078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.02564, allocations: 41.73 kB / 426.8 MB, free: 472 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.02578, allocations: 358.4 kB / 427.1 MB, free: 108 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1784/0.2041, allocations: 216 kB / 427.3 MB, free: 13.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.2043, allocations: 120.2 kB / 427.5 MB, free: 13.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.2044, allocations: 332.5 kB / 427.8 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.2046, allocations: 90.3 kB / 427.9 MB, free: 13.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2047, allocations: 331.1 kB / 428.2 MB, free: 12.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.2051, allocations: 330.4 kB / 428.5 MB, free: 12.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2051, allocations: 3.312 kB / 428.5 MB, free: 12.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.000761/0.2059, allocations: 466.3 kB / 429 MB, free: 12.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.434e-05/0.2059, allocations: 37.34 kB / 429 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.2059, allocations: 2.062 kB / 429 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003045/0.2062, allocations: 86.83 kB / 429.1 MB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.2066, allocations: 144.7 kB / 429.2 MB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009626/0.2075, allocations: 1.461 MB / 430.7 MB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.2078, allocations: 32.25 kB / 430.7 MB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.2079, allocations: 16.67 kB / 430.7 MB, free: 11.45 MB / 410.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 (69): * Single equations (assignments): 67 * 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.0002203/0.2081, allocations: 154.9 kB / 430.9 MB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.649e-05/0.2082, allocations: 72.83 kB / 431 MB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006497/0.2088, allocations: 492.8 kB / 431.4 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2089, allocations: 5.844 kB / 431.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2089, allocations: 6.719 kB / 431.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2089, allocations: 6.031 kB / 431.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.21, allocations: 0.7853 MB / 432.2 MB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.21, allocations: 1.469 kB / 432.3 MB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.2103, allocations: 115.6 kB / 432.4 MB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.2105, allocations: 93.36 kB / 432.5 MB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000234/0.2107, allocations: 102.9 kB / 432.6 MB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.2107, allocations: 14.55 kB / 432.6 MB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008303/0.2115, allocations: 1.462 MB / 434 MB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2115, allocations: 1.875 kB / 434 MB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.2122, allocations: 0.552 MB / 434.6 MB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.2123, allocations: 15.86 kB / 434.6 MB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.2125, allocations: 28.06 kB / 434.6 MB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.2126, allocations: 50.86 kB / 434.7 MB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.2127, allocations: 19.83 kB / 434.7 MB, free: 9.656 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003281/0.213, allocations: 307.3 kB / 435 MB, free: 9.625 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.213, allocations: 0 / 435 MB, free: 9.625 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005366/0.2135, allocations: 227.3 kB / 435.2 MB, free: 9.625 MB / 410.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 (49): * Single equations (assignments): 46 * 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.0002253/0.2138, allocations: 152.8 kB / 435.4 MB, free: 9.555 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006149/0.2144, allocations: 0.5175 MB / 435.9 MB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.967e-05/0.2144, allocations: 14.2 kB / 435.9 MB, free: 9.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.2148, allocations: 329.2 kB / 436.2 MB, free: 9.188 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008478/0.2156, allocations: 383.7 kB / 436.6 MB, free: 9.164 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.2271, allocations: 1.695 MB / 438.3 MB, free: 8.363 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.2273, allocations: 182.1 kB / 438.5 MB, free: 8.285 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005406/0.2278, allocations: 130.3 kB / 438.6 MB, free: 8.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.2283, allocations: 295.7 kB / 438.9 MB, free: 8.203 MB / 410.7 MB Notification: Performance of SimCode: time 1.492e-06/0.2283, allocations: 2.969 kB / 438.9 MB, free: 8.203 MB / 410.7 MB Notification: Performance of Templates: time 0.0166/0.2449, allocations: 14.42 MB / 453.3 MB, free: 15.45 MB / 426.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=240 -emit_protected -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8151288274675608]