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.0007393/0.0007393, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001018/0.001758, allocations: 440 kB / 10.41 MB, free: 284 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.0006768/0.0006768, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008947/0.001571, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9711/0.9711, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0818/1.053, allocations: 53.68 MB / 243.4 MB, free: 15.48 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.6581/0.6581, allocations: 118.8 MB / 362.9 MB, free: 1.133 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05447/0.7125, allocations: 35.84 MB / 398.8 MB, free: 13.19 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.623e-06/1.623e-06, allocations: 0 / 400.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.099e-05/1.261e-05, allocations: 2.312 kB / 400.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01121/0.01122, allocations: 9.392 MB / 409.5 MB, free: 2.465 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004647/0.01587, allocations: 2.528 MB / 412 MB, free: 15.92 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005747/0.01644, allocations: 59.44 kB / 412 MB, free: 15.86 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005147/0.01695, allocations: 229.8 kB / 412.3 MB, free: 15.64 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.0184, allocations: 0.694 MB / 413 MB, free: 14.94 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.01959, allocations: 0.4948 MB / 413.4 MB, free: 14.45 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001979/0.02157, allocations: 1.691 MB / 415.1 MB, free: 12.75 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000379/0.02194, allocations: 200.5 kB / 415.3 MB, free: 12.53 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.02338, allocations: 0.9963 MB / 416.3 MB, free: 11.53 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005343/0.02392, allocations: 430.6 kB / 416.8 MB, free: 11.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.331e-05/0.02401, allocations: 80 kB / 416.8 MB, free: 11.03 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003136/0.02433, allocations: 211.8 kB / 417 MB, free: 10.82 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.02444, allocations: 163.2 kB / 417.2 MB, free: 10.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.02468, allocations: 323.2 kB / 417.5 MB, free: 10.35 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008579/0.02554, allocations: 0.9339 MB / 418.4 MB, free: 9.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.719e-06/0.02555, allocations: 0 / 418.4 MB, free: 9.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.02555, allocations: 0 / 418.4 MB, free: 9.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.02557, allocations: 0 / 418.4 MB, free: 9.41 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.001605/0.02717, allocations: 1.718 MB / 420.2 MB, free: 7.641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.0272, allocations: 8.031 kB / 420.2 MB, free: 7.633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.02746, allocations: 168.7 kB / 420.3 MB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007801/0.02824, allocations: 0.6935 MB / 421 MB, free: 6.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.02828, allocations: 58.38 kB / 421.1 MB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.207e-05/0.02836, allocations: 88.27 kB / 421.2 MB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.02898, allocations: 0.7581 MB / 421.9 MB, free: 5.758 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.02899, allocations: 192 / 421.9 MB, free: 5.758 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.02903, allocations: 43.92 kB / 422 MB, free: 5.715 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.02905, allocations: 16 kB / 422 MB, free: 5.699 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005443/0.02959, allocations: 240.6 kB / 422.2 MB, free: 5.465 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.03138, allocations: 1.663 MB / 423.9 MB, free: 3.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004229/0.03181, allocations: 394.9 kB / 424.3 MB, free: 3.367 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.03193, allocations: 130.8 kB / 424.4 MB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008356/0.03276, allocations: 0.6493 MB / 425.1 MB, free: 2.574 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.03305, allocations: 433.5 kB / 425.5 MB, free: 2.086 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.473e-06/0.03305, allocations: 0 / 425.5 MB, free: 2.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001439/0.03449, allocations: 0.9908 MB / 426.5 MB, free: 1.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.03453, allocations: 85.61 kB / 426.5 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.03487, allocations: 0.6091 MB / 427.2 MB, free: 348 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.0349, allocations: 41.73 kB / 427.2 MB, free: 300 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1775/0.2125, allocations: 357.6 kB / 427.5 MB, free: 13.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002967/0.2127, allocations: 218 kB / 427.8 MB, free: 13.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.2129, allocations: 124.2 kB / 427.9 MB, free: 13.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.266e-05/0.213, allocations: 332.6 kB / 428.2 MB, free: 13.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.2131, allocations: 89.52 kB / 428.3 MB, free: 13.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.2133, allocations: 332.5 kB / 428.6 MB, free: 12.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.2136, allocations: 338.9 kB / 428.9 MB, free: 12.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2136, allocations: 0 / 428.9 MB, free: 12.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0006156/0.2143, allocations: 467.4 kB / 429.4 MB, free: 12.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.2143, allocations: 32.98 kB / 429.4 MB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.2143, allocations: 3.875 kB / 429.4 MB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.2146, allocations: 89.12 kB / 429.5 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.2149, allocations: 147.6 kB / 429.7 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.2161, allocations: 1.458 MB / 431.1 MB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/0.2165, allocations: 29.83 kB / 431.2 MB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/0.2165, allocations: 21.84 kB / 431.2 MB, free: 11.4 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.0002367/0.2168, allocations: 154.1 kB / 431.3 MB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.758e-05/0.2169, allocations: 72.67 kB / 431.4 MB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005925/0.2174, allocations: 496.5 kB / 431.9 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.2175, allocations: 4.656 kB / 431.9 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2175, allocations: 7 kB / 431.9 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.2175, allocations: 4.25 kB / 431.9 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.2186, allocations: 0.7856 MB / 432.7 MB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2186, allocations: 1.672 kB / 432.7 MB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.2189, allocations: 116.2 kB / 432.8 MB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.219, allocations: 93.16 kB / 432.9 MB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002401/0.2193, allocations: 100.4 kB / 433 MB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.2193, allocations: 18.78 kB / 433 MB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008224/0.2201, allocations: 1.468 MB / 434.5 MB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2201, allocations: 2.156 kB / 434.5 MB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.2207, allocations: 0.5513 MB / 435 MB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.2208, allocations: 12.52 kB / 435 MB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.221, allocations: 29.17 kB / 435.1 MB, free: 9.562 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.2211, allocations: 55.28 kB / 435.1 MB, free: 9.562 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.2211, allocations: 17.03 kB / 435.1 MB, free: 9.562 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003298/0.2214, allocations: 312.4 kB / 435.4 MB, free: 9.531 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2214, allocations: 0.5469 kB / 435.5 MB, free: 9.531 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005268/0.222, allocations: 228.8 kB / 435.7 MB, free: 9.531 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.0002086/0.2222, allocations: 141.6 kB / 435.8 MB, free: 9.461 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.2227, allocations: 0.5312 MB / 436.3 MB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.11e-05/0.2228, allocations: 12.38 kB / 436.4 MB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.2231, allocations: 359.4 kB / 436.7 MB, free: 9.094 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.2243, allocations: 2.077 MB / 438.8 MB, free: 7.078 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.2353, allocations: 1.677 MB / 440.5 MB, free: 6.277 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.2354, allocations: 182.2 kB / 440.6 MB, free: 6.203 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.2358, allocations: 135.5 kB / 440.8 MB, free: 6.172 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.2362, allocations: 297.1 kB / 441.1 MB, free: 6.117 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2362, allocations: 0.8125 kB / 441.1 MB, free: 6.117 MB / 410.7 MB Notification: Performance of Templates: time 0.01593/0.2521, allocations: 14.53 MB / 455.6 MB, free: 13.08 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.704860799945891]