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.001716/0.001716, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002238/0.002238, allocations: 216.2 kB / 22.26 MB, free: 5.082 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8357/0.8357, allocations: 100.3 MB / 412.7 MB, free: 3.699 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 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="Time|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="Time|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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002589/0.002589, allocations: 88.42 kB / 0.5638 GB, free: 35.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1429, allocations: 74.45 MB / 0.6365 GB, free: 7.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03722/0.1802, allocations: 31.57 MB / 0.6673 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01327/0.1934, allocations: 9.816 MB / 0.6769 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.1947, allocations: 59.5 kB / 0.6769 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.1962, allocations: 0.5318 MB / 0.6774 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002398/0.1986, allocations: 0.8152 MB / 0.6782 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.2006, allocations: 0.7125 MB / 0.6789 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00214/0.2028, allocations: 1.508 MB / 0.6804 GB, free: 10 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004048/0.2032, allocations: 194.2 kB / 0.6806 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.2044, allocations: 0.6459 MB / 0.6812 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007178/0.2051, allocations: 0.5364 MB / 0.6818 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.2052, allocations: 80 kB / 0.6818 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001461/0.2067, allocations: 0.5307 MB / 0.6823 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.2069, allocations: 207.1 kB / 0.6825 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005405/0.2074, allocations: 0.5168 MB / 0.6831 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.2096, allocations: 1.408 MB / 0.6844 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2096, allocations: 0 / 0.6844 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2096, allocations: 0 / 0.6844 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.397e-05/0.2096, allocations: 0 / 0.6844 GB, free: 5.859 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00266/0.2123, allocations: 1.379 MB / 0.6858 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2123, allocations: 9.469 kB / 0.6858 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002943/0.2126, allocations: 132.2 kB / 0.6859 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.214, allocations: 0.6794 MB / 0.6866 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.884e-05/0.214, allocations: 54 kB / 0.6866 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.2141, allocations: 76 kB / 0.6867 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2156, allocations: 0.7955 MB / 0.6875 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2156, allocations: 0 / 0.6875 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.2157, allocations: 32 kB / 0.6875 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.2157, allocations: 23.94 kB / 0.6875 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.217, allocations: 0.6441 MB / 0.6882 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005005/0.222, allocations: 3.636 MB / 0.6917 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.2232, allocations: 0.5552 MB / 0.6922 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004973/0.2237, allocations: 252.9 kB / 0.6925 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002208/0.2259, allocations: 1.108 MB / 0.6936 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007378/0.2267, allocations: 371.1 kB / 0.6939 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 2.024e-06/0.2267, allocations: 0 / 0.6939 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65): time 0.003959/0.2306, allocations: 1.732 MB / 0.6956 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.2307, allocations: 89.77 kB / 0.6957 GB, free: 9.777 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.2315, allocations: 0.6259 MB / 0.6963 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.121e-05/0.2316, allocations: 37.7 kB / 0.6963 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.232, allocations: 452.6 kB / 0.6968 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.2322, allocations: 238 kB / 0.697 GB, free: 8.414 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.2324, allocations: 118.3 kB / 0.6971 GB, free: 8.289 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2325, allocations: 334 kB / 0.6974 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.233, allocations: 209.5 kB / 0.6976 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/0.2336, allocations: 323.5 kB / 0.6979 GB, free: 7.402 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.2346, allocations: 0.5617 MB / 0.6985 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2346, allocations: 0 / 0.6985 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001584/0.2362, allocations: 0.8073 MB / 0.6993 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.2362, allocations: 37.98 kB / 0.6993 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.2363, allocations: 7.984 kB / 0.6993 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003915/0.2366, allocations: 96.73 kB / 0.6994 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005191/0.2372, allocations: 127.8 kB / 0.6995 GB, free: 5.703 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.2395, allocations: 1.881 MB / 0.7014 GB, free: 3.707 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004121/0.2399, allocations: 24.02 kB / 0.7014 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.657e-05/0.24, allocations: 35.92 kB / 0.7014 GB, free: 3.648 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (73): * Single equations (assignments): 71 * 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.0003825/0.2404, allocations: 225.7 kB / 0.7017 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.2405, allocations: 95.38 kB / 0.7017 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.2423, allocations: 0.8488 MB / 0.7026 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.2423, allocations: 11.94 kB / 0.7026 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2423, allocations: 0 / 0.7026 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.489e-05/0.2423, allocations: 3.984 kB / 0.7026 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/0.2451, allocations: 1.576 MB / 0.7041 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2451, allocations: 0 / 0.7041 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004981/0.2456, allocations: 115.9 kB / 0.7042 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003363/0.2459, allocations: 104.8 kB / 0.7043 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-05/0.246, allocations: 27.92 kB / 0.7044 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.2482, allocations: 1.867 MB / 0.7062 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.2482, allocations: 3.938 kB / 0.7062 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.2502, allocations: 1.077 MB / 0.7072 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003396/0.2506, allocations: 147.3 kB / 0.7074 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.737e-05/0.2507, allocations: 12.28 kB / 0.7074 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004073/0.2511, allocations: 23.98 kB / 0.7074 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.2512, allocations: 64.33 kB / 0.7075 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.86e-05/0.2512, allocations: 31.92 kB / 0.7075 GB, free: 13.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005992/0.2518, allocations: 455 kB / 0.7079 GB, free: 12.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.2518, allocations: 0 / 0.7079 GB, free: 12.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008859/0.2527, allocations: 279.7 kB / 0.7082 GB, free: 12.47 MB / 0.545 GB 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 (55): * Single equations (assignments): 52 * 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.0005705/0.2533, allocations: 362.5 kB / 0.7086 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001552/0.2549, allocations: 0.748 MB / 0.7093 GB, free: 11.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.2549, allocations: 3.984 kB / 0.7093 GB, free: 11.33 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008528/0.2557, allocations: 445.9 kB / 0.7097 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.2568, allocations: 256.4 kB / 0.71 GB, free: 10.64 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.2601, allocations: 1.818 MB / 0.7117 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007126/0.2609, allocations: 1.005 MB / 0.7127 GB, free: 7.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004861/0.2613, allocations: 149.9 kB / 0.7129 GB, free: 7.602 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.2615, allocations: 71.42 kB / 0.7129 GB, free: 7.531 MB / 0.545 GB Notification: Performance of SimCode: time 5.71e-07/0.2615, allocations: 0 / 0.7129 GB, free: 7.531 MB / 0.545 GB Notification: Performance of Templates: time 0.02775/0.2893, allocations: 14.48 MB / 0.7271 GB, free: 9.172 MB / 0.5606 GB " [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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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: 6.268172702752054]