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.001344/0.001344, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001287/0.001287, allocations: 181 kB / 23.36 MB, free: 1.133 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.9583/0.9583, allocations: 177.1 MB / 203.8 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6982/0.6982, allocations: 118.7 MB / 378.9 MB, free: 1.359 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.974e-06/1.974e-06, allocations: 0 / 430.8 MB, free: 13.38 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.842e-05/3.04e-05, allocations: 6.25 kB / 430.8 MB, free: 13.38 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01035/0.01038, allocations: 9.305 MB / 440.1 MB, free: 4.02 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004079/0.01446, allocations: 2.527 MB / 442.6 MB, free: 1.484 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007787/0.01524, allocations: 59.44 kB / 442.7 MB, free: 1.426 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005569/0.0158, allocations: 218 kB / 442.9 MB, free: 1.211 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00146/0.01726, allocations: 0.7018 MB / 443.6 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1789/0.1962, allocations: 0.5089 MB / 444.1 MB, free: 17.69 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.1982, allocations: 1.675 MB / 445.8 MB, free: 17.31 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/0.1985, allocations: 197.1 kB / 446 MB, free: 17.26 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.2001, allocations: 0.9022 MB / 446.9 MB, free: 17.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006928/0.2008, allocations: 438.5 kB / 447.3 MB, free: 17.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001568/0.2009, allocations: 79.53 kB / 447.4 MB, free: 17.11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004779/0.2014, allocations: 214.3 kB / 447.6 MB, free: 17.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.2015, allocations: 211.6 kB / 447.8 MB, free: 17.05 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004555/0.202, allocations: 379.7 kB / 448.2 MB, free: 17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001306/0.2033, allocations: 0.9937 MB / 449.2 MB, free: 16.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2033, allocations: 1.641 kB / 449.2 MB, free: 16.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2033, allocations: 0 / 449.2 MB, free: 16.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.261e-05/0.2033, allocations: 1.156 kB / 449.2 MB, free: 16.87 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.002032/0.2054, allocations: 1.397 MB / 450.6 MB, free: 16.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2054, allocations: 10.33 kB / 450.6 MB, free: 16.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003329/0.2058, allocations: 164.7 kB / 450.7 MB, free: 16.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.2068, allocations: 0.6965 MB / 451.4 MB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.2068, allocations: 57.69 kB / 451.5 MB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.744e-05/0.2069, allocations: 86.3 kB / 451.6 MB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.2077, allocations: 0.7538 MB / 452.3 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.2077, allocations: 3.75 kB / 452.3 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.2077, allocations: 37.89 kB / 452.4 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.2078, allocations: 18.38 kB / 452.4 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.2081, allocations: 242.7 kB / 452.6 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.2103, allocations: 1.662 MB / 454.3 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004715/0.2108, allocations: 382 kB / 454.7 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2109, allocations: 129.9 kB / 454.8 MB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009619/0.2119, allocations: 0.6521 MB / 455.4 MB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/0.2122, allocations: 429.2 kB / 455.9 MB, free: 14.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.773e-06/0.2122, allocations: 0 / 455.9 MB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001324/0.2135, allocations: 0.9109 MB / 456.8 MB, free: 13.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.2135, allocations: 111.2 kB / 456.9 MB, free: 13.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.2139, allocations: 0.6105 MB / 457.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.2139, allocations: 42.83 kB / 457.5 MB, free: 13.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.214, allocations: 357.2 kB / 457.9 MB, free: 13.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/0.2141, allocations: 218.9 kB / 458.1 MB, free: 13.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.2142, allocations: 122.3 kB / 458.2 MB, free: 13.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.734e-05/0.2143, allocations: 333.6 kB / 458.5 MB, free: 13.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.369e-05/0.2144, allocations: 89.31 kB / 458.6 MB, free: 12.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.2145, allocations: 331.7 kB / 458.9 MB, free: 12.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.2147, allocations: 330.8 kB / 459.3 MB, free: 12.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2147, allocations: 4.125 kB / 459.3 MB, free: 12.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0004172/0.2152, allocations: 459.5 kB / 459.7 MB, free: 12.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.2152, allocations: 37.45 kB / 459.8 MB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.2152, allocations: 4.688 kB / 459.8 MB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.2154, allocations: 89.06 kB / 459.9 MB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.2157, allocations: 120.8 kB / 460 MB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008034/0.2165, allocations: 1.454 MB / 461.4 MB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.2167, allocations: 28.25 kB / 461.5 MB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.2168, allocations: 20.28 kB / 461.5 MB, free: 11.27 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.0001879/0.217, allocations: 157.9 kB / 461.6 MB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.217, allocations: 76.88 kB / 461.7 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004829/0.2175, allocations: 495.4 kB / 462.2 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2175, allocations: 4 kB / 462.2 MB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2175, allocations: 6.281 kB / 462.2 MB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2175, allocations: 7.922 kB / 462.2 MB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008933/0.2184, allocations: 0.7812 MB / 463 MB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2184, allocations: 3.938 kB / 463 MB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.2186, allocations: 91.31 kB / 463.1 MB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.2188, allocations: 101.9 kB / 463.2 MB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.2189, allocations: 16.48 kB / 463.2 MB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006641/0.2195, allocations: 1.459 MB / 464.7 MB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2195, allocations: 2.094 kB / 464.7 MB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004743/0.22, allocations: 0.5472 MB / 465.2 MB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.2201, allocations: 96.55 kB / 465.3 MB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.2202, allocations: 12 kB / 465.3 MB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.2204, allocations: 27.11 kB / 465.3 MB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.2204, allocations: 55.72 kB / 465.4 MB, free: 7.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.2205, allocations: 19.33 kB / 465.4 MB, free: 7.578 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001738/0.2206, allocations: 310.9 kB / 465.7 MB, free: 7.312 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2206, allocations: 0 / 465.7 MB, free: 7.312 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004736/0.2211, allocations: 223.9 kB / 465.9 MB, free: 7.094 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.0001992/0.2213, allocations: 150 kB / 466.1 MB, free: 6.953 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004823/0.2218, allocations: 0.5186 MB / 466.6 MB, free: 6.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.2218, allocations: 12 kB / 466.6 MB, free: 6.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.2221, allocations: 333.7 kB / 466.9 MB, free: 6.098 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/0.2228, allocations: 314.6 kB / 467.2 MB, free: 5.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.2248, allocations: 1.649 MB / 468.9 MB, free: 4.156 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.2249, allocations: 179.6 kB / 469.1 MB, free: 3.961 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00035/0.2253, allocations: 124.2 kB / 469.2 MB, free: 3.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004054/0.2257, allocations: 288.5 kB / 469.5 MB, free: 3.562 MB / 410.7 MB Notification: Performance of SimCode: time 1.313e-06/0.2257, allocations: 0 / 469.5 MB, free: 3.562 MB / 410.7 MB Notification: Performance of Templates: time 0.01836/0.244, allocations: 13.84 MB / 483.3 MB, free: 6.266 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 -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.8625481496565044]