Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 105.8 kB / 16.39 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 190.6 kB / 17.33 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.781/0.781, allocations: 97.64 MB / 388.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00256/0.00256, allocations: 82.39 kB / 0.5268 GB, free: 38.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1053, allocations: 69.24 MB / 0.5944 GB, free: 496 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.0478/0.1531, allocations: 41.19 MB / 0.6346 GB, free: 7.141 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00847/0.1616, allocations: 5.343 MB / 0.6398 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1628, allocations: 43.69 kB / 0.6399 GB, free: 1.742 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.1643, allocations: 0.551 MB / 0.6404 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.1681, allocations: 1.386 MB / 0.6418 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002514/0.1706, allocations: 0.8797 MB / 0.6426 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003069/0.1737, allocations: 2.144 MB / 0.6447 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.1741, allocations: 165 kB / 0.6449 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0029/0.177, allocations: 1.33 MB / 0.6462 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.1782, allocations: 0.7739 MB / 0.6469 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002312/0.1784, allocations: 100 kB / 0.647 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.1805, allocations: 0.7335 MB / 0.6478 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003303/0.1808, allocations: 278.7 kB / 0.648 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008191/0.1816, allocations: 0.6529 MB / 0.6487 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.1851, allocations: 1.86 MB / 0.6505 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1851, allocations: 0 / 0.6505 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1851, allocations: 0 / 0.6505 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.212e-05/0.1851, allocations: 0 / 0.6505 GB, free: 6.848 MB / 0.4981 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.003577/0.1887, allocations: 1.696 MB / 0.6521 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.1888, allocations: 12.03 kB / 0.6521 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.1892, allocations: 160 kB / 0.6523 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.191, allocations: 0.8842 MB / 0.6532 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-05/0.1911, allocations: 74.12 kB / 0.6532 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/0.1912, allocations: 103.9 kB / 0.6533 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.1933, allocations: 1.07 MB / 0.6544 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.1933, allocations: 0 / 0.6544 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.1934, allocations: 44 kB / 0.6544 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.1934, allocations: 20 kB / 0.6544 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.1954, allocations: 1.012 MB / 0.6554 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00708/0.2025, allocations: 4.744 MB / 0.6601 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.2045, allocations: 0.8619 MB / 0.6609 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009442/0.2054, allocations: 454.3 kB / 0.6613 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005287/0.2107, allocations: 3.488 MB / 0.6647 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.2108, allocations: 47.08 kB / 0.6648 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=108): time 3.627e-06/0.2108, allocations: 4 kB / 0.6648 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of matching and sorting (n=122): time 0.01131/0.2221, allocations: 4.465 MB / 0.6691 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.2222, allocations: 90.2 kB / 0.6692 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.2232, allocations: 0.7562 MB / 0.67 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.2234, allocations: 53.7 kB / 0.67 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/0.2238, allocations: 493.4 kB / 0.6705 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003951/0.2242, allocations: 444.1 kB / 0.6709 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003327/0.2245, allocations: 198.9 kB / 0.6711 GB, free: 448 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000189/0.2247, allocations: 353.9 kB / 0.6714 GB, free: 88 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.2257, allocations: 410.4 kB / 0.6718 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.2269, allocations: 0.5662 MB / 0.6724 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.2291, allocations: 1.044 MB / 0.6734 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.2291, allocations: 4 kB / 0.6734 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003642/0.2327, allocations: 1.496 MB / 0.6749 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.2327, allocations: 10.33 kB / 0.6749 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.2328, allocations: 4 kB / 0.6749 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.2339, allocations: 311 kB / 0.6752 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.2349, allocations: 231.7 kB / 0.6754 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.246, allocations: 12.15 MB / 0.6873 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000966/0.2469, allocations: 43.97 kB / 0.6873 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.2471, allocations: 51.98 kB / 0.6874 GB, free: 14.52 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0005527/0.2476, allocations: 253.6 kB / 0.6876 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/0.2479, allocations: 119.2 kB / 0.6877 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/0.2522, allocations: 1.86 MB / 0.6895 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.2522, allocations: 16 kB / 0.6895 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.2522, allocations: 7.938 kB / 0.6896 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.2522, allocations: 7.969 kB / 0.6896 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00592/0.2582, allocations: 2.875 MB / 0.6924 GB, free: 9.234 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2582, allocations: 4.062 kB / 0.6924 GB, free: 9.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009933/0.2592, allocations: 219.7 kB / 0.6926 GB, free: 9.016 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.2603, allocations: 314.5 kB / 0.6929 GB, free: 8.684 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.2604, allocations: 43.95 kB / 0.6929 GB, free: 8.641 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.011/0.2714, allocations: 12.15 MB / 0.7048 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2714, allocations: 0 / 0.7048 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004896/0.2763, allocations: 2.172 MB / 0.7069 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.2766, allocations: 188.2 kB / 0.7071 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.2768, allocations: 31.88 kB / 0.7071 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008294/0.2777, allocations: 59.95 kB / 0.7072 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.2779, allocations: 108.9 kB / 0.7073 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.278, allocations: 43.97 kB / 0.7073 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008397/0.2789, allocations: 0.5633 MB / 0.7079 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.2789, allocations: 0 / 0.7079 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001613/0.2805, allocations: 439.5 kB / 0.7083 GB, free: 7.695 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 (104): * Single equations (assignments): 96 * 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.0007445/0.2812, allocations: 432 kB / 0.7087 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003946/0.2852, allocations: 2.016 MB / 0.7107 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.2852, allocations: 4 kB / 0.7107 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00279/0.288, allocations: 1.562 MB / 0.7122 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.29, allocations: 350.1 kB / 0.7125 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005451/0.2954, allocations: 2.698 MB / 0.7152 GB, free: 420 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008538/0.2963, allocations: 1.103 MB / 0.7162 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009576/0.2972, allocations: 244 kB / 0.7165 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.2976, allocations: 119.4 kB / 0.7166 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/0.2976, allocations: 0 / 0.7166 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of Templates: time 0.0467/0.3443, allocations: 24.93 MB / 0.7409 GB, free: 6.219 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches