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.0008336/0.0008336, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001233/0.002066, 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.0007663/0.0007663, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009468/0.001713, 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.9517/0.9517, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08677/1.038, allocations: 53.65 MB / 243.2 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-main/package.mo): time 0.6568/0.6568, allocations: 118.7 MB / 362.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05073/0.7075, allocations: 35.83 MB / 398.5 MB, free: 13.36 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-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="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="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.533e-06/1.533e-06, allocations: 0 / 399.8 MB, free: 12.1 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.117e-05, allocations: 2.312 kB / 399.8 MB, free: 12.1 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01105/0.01107, allocations: 9.391 MB / 409.2 MB, free: 2.66 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004843/0.01591, allocations: 2.527 MB / 411.7 MB, free: 132 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000799/0.01671, allocations: 59.44 kB / 411.7 MB, free: 72 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006024/0.01732, allocations: 214 kB / 412 MB, free: 15.86 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001639/0.01895, allocations: 0.6979 MB / 412.7 MB, free: 15.16 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.02028, allocations: 0.5064 MB / 413.2 MB, free: 14.65 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001768/0.02205, allocations: 1.687 MB / 414.8 MB, free: 12.95 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.02243, allocations: 200.4 kB / 415 MB, free: 12.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.02382, allocations: 0.9925 MB / 416 MB, free: 11.74 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000583/0.0244, allocations: 438.5 kB / 416.5 MB, free: 11.31 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.02453, allocations: 80 kB / 416.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000475/0.025, allocations: 203.8 kB / 416.7 MB, free: 11.04 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.02518, allocations: 167.2 kB / 416.9 MB, free: 10.87 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003866/0.02557, allocations: 315.3 kB / 417.2 MB, free: 10.56 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.02685, allocations: 0.9416 MB / 418.2 MB, free: 9.617 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.78e-05/0.02687, allocations: 4 kB / 418.2 MB, free: 9.613 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.02687, allocations: 0 / 418.2 MB, free: 9.613 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.557e-05/0.02689, allocations: 0 / 418.2 MB, free: 9.613 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.002321/0.02922, allocations: 1.714 MB / 419.9 MB, free: 7.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.02925, allocations: 8.031 kB / 419.9 MB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.02961, allocations: 164.7 kB / 420 MB, free: 7.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009876/0.0306, allocations: 0.7128 MB / 420.8 MB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.03064, allocations: 58.38 kB / 420.8 MB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.379e-05/0.03073, allocations: 80.33 kB / 420.9 MB, free: 6.789 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.03137, allocations: 0.762 MB / 421.6 MB, free: 5.953 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.03138, allocations: 192 / 421.6 MB, free: 5.953 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.03142, allocations: 35.94 kB / 421.7 MB, free: 5.918 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.03143, allocations: 16 kB / 421.7 MB, free: 5.902 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.03172, allocations: 244.6 kB / 421.9 MB, free: 5.664 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/0.03358, allocations: 1.655 MB / 423.6 MB, free: 3.969 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003981/0.03398, allocations: 390.1 kB / 424 MB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.03409, allocations: 126.8 kB / 424.1 MB, free: 3.457 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008181/0.03491, allocations: 0.6688 MB / 424.8 MB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.03521, allocations: 421.6 kB / 425.2 MB, free: 2.297 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.963e-06/0.03521, allocations: 0 / 425.2 MB, free: 2.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001338/0.03655, allocations: 0.9128 MB / 426.1 MB, free: 1.348 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.03658, allocations: 89.55 kB / 426.2 MB, free: 1.242 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.03692, allocations: 0.6091 MB / 426.8 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.03695, allocations: 41.7 kB / 426.8 MB, free: 0.5742 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.0371, allocations: 354.4 kB / 427.2 MB, free: 228 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.437e-05/0.03719, allocations: 222.1 kB / 427.4 MB, free: 4 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1737/0.2109, allocations: 112.5 kB / 427.5 MB, free: 13.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.047e-05/0.2109, allocations: 336.6 kB / 427.8 MB, free: 13.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.211, allocations: 93.23 kB / 427.9 MB, free: 13.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.2112, allocations: 325.4 kB / 428.2 MB, free: 12.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.2115, allocations: 334.4 kB / 428.6 MB, free: 12.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2115, allocations: 0.6875 kB / 428.6 MB, free: 12.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005804/0.212, allocations: 464.7 kB / 429 MB, free: 12.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.2121, allocations: 34.16 kB / 429.1 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2121, allocations: 4.719 kB / 429.1 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003051/0.2124, allocations: 87.02 kB / 429.1 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.2127, allocations: 146.2 kB / 429.3 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009284/0.2136, allocations: 1.464 MB / 430.7 MB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.214, allocations: 34.05 kB / 430.8 MB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.214, allocations: 16.72 kB / 430.8 MB, free: 11.52 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.0002025/0.2142, allocations: 160.3 kB / 431 MB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-05/0.2143, allocations: 71.56 kB / 431 MB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006106/0.2149, allocations: 494.6 kB / 431.5 MB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2149, allocations: 4.688 kB / 431.5 MB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2149, allocations: 6.844 kB / 431.5 MB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2149, allocations: 4.062 kB / 431.5 MB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.216, allocations: 0.7766 MB / 432.3 MB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.216, allocations: 2.609 kB / 432.3 MB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.2163, allocations: 117.9 kB / 432.4 MB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.2164, allocations: 96.84 kB / 432.5 MB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002301/0.2167, allocations: 96.45 kB / 432.6 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.2167, allocations: 17.89 kB / 432.6 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008039/0.2175, allocations: 1.467 MB / 434.1 MB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.2175, allocations: 1.344 kB / 434.1 MB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005855/0.2181, allocations: 0.5515 MB / 434.6 MB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.2182, allocations: 12.83 kB / 434.7 MB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.2183, allocations: 30.25 kB / 434.7 MB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.915e-05/0.2184, allocations: 49.22 kB / 434.7 MB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.2185, allocations: 18.47 kB / 434.8 MB, free: 9.762 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002601/0.2187, allocations: 306 kB / 435.1 MB, free: 9.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.2187, allocations: 1.656 kB / 435.1 MB, free: 9.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005127/0.2192, allocations: 231.2 kB / 435.3 MB, free: 9.73 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.0002223/0.2195, allocations: 150.3 kB / 435.4 MB, free: 9.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005731/0.22, allocations: 0.5261 MB / 436 MB, free: 9.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.299e-05/0.2201, allocations: 15.66 kB / 436 MB, free: 9.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.2204, allocations: 321.9 kB / 436.3 MB, free: 9.301 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/0.2212, allocations: 375.5 kB / 436.6 MB, free: 9.281 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0152/0.2364, allocations: 1.694 MB / 438.3 MB, free: 8.488 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.2366, allocations: 184.9 kB / 438.5 MB, free: 8.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007724/0.2374, allocations: 134.8 kB / 438.7 MB, free: 8.383 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.238, allocations: 283.2 kB / 438.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.238, allocations: 0.5938 kB / 438.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of Templates: time 0.02496/0.263, allocations: 14.43 MB / 453.4 MB, free: 15.59 MB / 426.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.8183948919177055]