Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.00156/0.00156, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001763/0.001763, allocations: 216.6 kB / 22.99 MB, free: 4.945 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.409/1.409, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7241/0.7241, allocations: 94.63 MB / 407.8 MB, free: 8.922 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [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.002605/0.002605, allocations: 83.67 kB / 0.5562 GB, free: 38.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1136, allocations: 73.05 MB / 0.6275 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04298/0.1566, allocations: 37.59 MB / 0.6642 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007828/0.1644, allocations: 4.953 MB / 0.6691 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.1656, allocations: 59.44 kB / 0.6691 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.1671, allocations: 0.4965 MB / 0.6696 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003871/0.171, allocations: 1.379 MB / 0.6709 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002501/0.1735, allocations: 0.894 MB / 0.6718 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002953/0.1764, allocations: 2.163 MB / 0.6739 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004288/0.1769, allocations: 161.4 kB / 0.6741 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002946/0.1798, allocations: 1.377 MB / 0.6754 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.181, allocations: 0.7347 MB / 0.6761 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002215/0.1812, allocations: 100 kB / 0.6762 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.1833, allocations: 0.6749 MB / 0.6769 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003137/0.1836, allocations: 266.8 kB / 0.6772 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006836/0.1842, allocations: 0.5403 MB / 0.6777 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003145/0.1874, allocations: 1.848 MB / 0.6795 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1874, allocations: 0 / 0.6795 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1874, allocations: 0 / 0.6795 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.646e-05/0.1874, allocations: 0 / 0.6795 GB, free: 10.25 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003273/0.1907, allocations: 1.625 MB / 0.6811 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1907, allocations: 8.031 kB / 0.6811 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006406/0.1914, allocations: 187.9 kB / 0.6813 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.1931, allocations: 0.7886 MB / 0.682 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.1931, allocations: 78.11 kB / 0.6821 GB, free: 7.504 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.1933, allocations: 99.95 kB / 0.6822 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.1953, allocations: 1.317 MB / 0.6835 GB, free: 5.996 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.1953, allocations: 4 kB / 0.6835 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-05/0.1954, allocations: 36 kB / 0.6835 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.846e-05/0.1954, allocations: 28 kB / 0.6835 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.1972, allocations: 1.008 MB / 0.6845 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005144/0.2024, allocations: 2.907 MB / 0.6874 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.2042, allocations: 0.8656 MB / 0.6882 GB, free: 1.066 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008158/0.205, allocations: 442.8 kB / 0.6886 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003013/0.208, allocations: 1.334 MB / 0.6899 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.2081, allocations: 43.22 kB / 0.69 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 2.935e-06/0.2081, allocations: 0 / 0.69 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122): time 0.01037/0.2184, allocations: 4.015 MB / 0.6939 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.2185, allocations: 94.19 kB / 0.694 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009196/0.2194, allocations: 0.7043 MB / 0.6947 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.385e-05/0.2195, allocations: 45.7 kB / 0.6947 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000387/0.2199, allocations: 481.4 kB / 0.6952 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.2203, allocations: 452.1 kB / 0.6956 GB, free: 9.316 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003014/0.2206, allocations: 198.8 kB / 0.6958 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2208, allocations: 353.9 kB / 0.6961 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008999/0.2217, allocations: 402.4 kB / 0.6965 GB, free: 8.371 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2227, allocations: 0.5725 MB / 0.6971 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.2247, allocations: 1.056 MB / 0.6981 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2247, allocations: 0 / 0.6981 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003358/0.2281, allocations: 1.481 MB / 0.6996 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.2281, allocations: 8 kB / 0.6996 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2281, allocations: 4.469 kB / 0.6996 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.2292, allocations: 306.6 kB / 0.6999 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009346/0.2301, allocations: 239.6 kB / 0.7001 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.2401, allocations: 11.08 MB / 0.7109 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009374/0.2411, allocations: 55.95 kB / 0.711 GB, free: 8.582 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.2412, allocations: 47.98 kB / 0.711 GB, free: 8.535 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000508/0.2417, allocations: 253.7 kB / 0.7113 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.2419, allocations: 119.2 kB / 0.7114 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003893/0.2458, allocations: 1.789 MB / 0.7131 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.2458, allocations: 12 kB / 0.7131 GB, free: 6.316 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.2459, allocations: 4 kB / 0.7131 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.2459, allocations: 4.125 kB / 0.7131 GB, free: 6.309 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005263/0.2511, allocations: 2.457 MB / 0.7155 GB, free: 3.773 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.2511, allocations: 4 kB / 0.7155 GB, free: 3.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000985/0.2521, allocations: 195.9 kB / 0.7157 GB, free: 3.578 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.2532, allocations: 322.5 kB / 0.716 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.658e-05/0.2533, allocations: 31.98 kB / 0.7161 GB, free: 3.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/0.264, allocations: 11.11 MB / 0.7269 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.264, allocations: 4.031 kB / 0.7269 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004488/0.2684, allocations: 2.11 MB / 0.729 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.2687, allocations: 99.23 kB / 0.7291 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.2689, allocations: 31.94 kB / 0.7291 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007272/0.2696, allocations: 51.95 kB / 0.7292 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.2699, allocations: 108.8 kB / 0.7293 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-05/0.27, allocations: 43.97 kB / 0.7293 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007723/0.2707, allocations: 0.5068 MB / 0.7298 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.2707, allocations: 0 / 0.7298 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00139/0.2721, allocations: 407.7 kB / 0.7302 GB, free: 3.891 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006103/0.2727, allocations: 373.2 kB / 0.7305 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003681/0.2764, allocations: 1.984 MB / 0.7325 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2764, allocations: 0 / 0.7325 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.2791, allocations: 1.539 MB / 0.734 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.2806, allocations: 308.6 kB / 0.7343 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/0.2859, allocations: 2.7 MB / 0.7369 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006234/0.2865, allocations: 0.4972 MB / 0.7374 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.2869, allocations: 119.4 kB / 0.7375 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of SimCode: time 6.52e-07/0.2869, allocations: 0 / 0.7375 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.2837/0.5706, allocations: 54.88 MB / 0.7911 GB, free: 87.95 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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: 11.853470371104777]