Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000882/0.0008821, allocations: 177.9 kB / 15.43 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 225.7 MB / 241.9 MB, free: 428 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007484/0.0007484, allocations: 96.77 kB / 293.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.617/0.617, allocations: 90.99 MB / 435.2 MB, free: 24.47 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002788/0.0002789, allocations: 8 kB / 0.503 GB, free: 9.434 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2862, allocations: 69.1 MB / 0.5704 GB, free: 45.67 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02681/0.3131, allocations: 50.5 MB / 0.6197 GB, free: 6.199 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0058/0.3189, allocations: 7.861 MB / 0.6274 GB, free: 15.16 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005233/0.3194, allocations: 18.75 kB / 0.6274 GB, free: 15.16 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.3205, allocations: 475.5 kB / 0.6279 GB, free: 14.91 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.3227, allocations: 1.196 MB / 0.6291 GB, free: 14.19 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.3244, allocations: 0.7815 MB / 0.6298 GB, free: 13.76 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002126/0.3266, allocations: 2.592 MB / 0.6324 GB, free: 12.75 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.3269, allocations: 230.3 kB / 0.6326 GB, free: 12.64 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.3285, allocations: 0.9163 MB / 0.6335 GB, free: 12.25 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007503/0.3293, allocations: 0.7109 MB / 0.6342 GB, free: 11.95 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.3294, allocations: 45.41 kB / 0.6342 GB, free: 11.95 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.3312, allocations: 0.7572 MB / 0.6349 GB, free: 11.73 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000227/0.3314, allocations: 198.3 kB / 0.6351 GB, free: 11.61 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005542/0.332, allocations: 0.5625 MB / 0.6357 GB, free: 11.29 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002208/0.3342, allocations: 1.679 MB / 0.6373 GB, free: 10.74 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3342, allocations: 0.8438 kB / 0.6373 GB, free: 10.74 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3342, allocations: 0 / 0.6373 GB, free: 10.74 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.3343, allocations: 0 / 0.6373 GB, free: 10.74 MB / 458.7 MB 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.00247/0.3367, allocations: 1.303 MB / 0.6386 GB, free: 9.887 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3368, allocations: 13.72 kB / 0.6386 GB, free: 9.883 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003032/0.3371, allocations: 128 kB / 0.6387 GB, free: 9.824 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.3379, allocations: 0.6098 MB / 0.6393 GB, free: 9.383 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.478e-05/0.3379, allocations: 71.5 kB / 0.6394 GB, free: 9.352 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.3381, allocations: 95.23 kB / 0.6395 GB, free: 9.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.3399, allocations: 1.078 MB / 0.6405 GB, free: 8.852 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.3399, allocations: 3.984 kB / 0.6405 GB, free: 8.848 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.308e-05/0.34, allocations: 41.41 kB / 0.6406 GB, free: 8.816 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.34, allocations: 22.23 kB / 0.6406 GB, free: 8.816 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.3417, allocations: 1.033 MB / 0.6416 GB, free: 8.461 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.347, allocations: 4.81 MB / 0.6463 GB, free: 4.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/0.349, allocations: 1.154 MB / 0.6474 GB, free: 4.051 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008632/0.3498, allocations: 0.5504 MB / 0.648 GB, free: 3.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003974/0.3538, allocations: 3.181 MB / 0.6511 GB, free: 1.211 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.3539, allocations: 49.64 kB / 0.6511 GB, free: 1.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 2.985e-06/0.3539, allocations: 3.938 kB / 0.6511 GB, free: 1.156 MB / 458.7 MB Notification: Performance of matching and sorting (n=131): time 0.009855/0.3638, allocations: 4.788 MB / 0.6558 GB, free: 14.51 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.3638, allocations: 94.17 kB / 0.6559 GB, free: 14.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005812/0.3644, allocations: 0.5283 MB / 0.6564 GB, free: 14.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.932e-05/0.3645, allocations: 46.83 kB / 0.6565 GB, free: 14.04 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.3647, allocations: 385.1 kB / 0.6568 GB, free: 13.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.365, allocations: 457 kB / 0.6573 GB, free: 13.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.3651, allocations: 20.47 kB / 0.6573 GB, free: 13.29 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3653, allocations: 402.1 kB / 0.6577 GB, free: 12.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009067/0.3662, allocations: 479.1 kB / 0.6581 GB, free: 12.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.3672, allocations: 0.6215 MB / 0.6587 GB, free: 12.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.3692, allocations: 1.167 MB / 0.6599 GB, free: 11.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3692, allocations: 1.031 kB / 0.6599 GB, free: 11.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003117/0.3723, allocations: 1.608 MB / 0.6614 GB, free: 10.11 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3723, allocations: 8 kB / 0.6614 GB, free: 10.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3724, allocations: 0 / 0.6614 GB, free: 10.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009743/0.3733, allocations: 302.9 kB / 0.6617 GB, free: 9.777 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000872/0.3742, allocations: 243.7 kB / 0.662 GB, free: 9.539 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007639/0.3819, allocations: 11.24 MB / 0.6729 GB, free: 13.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008433/0.3827, allocations: 91.92 kB / 0.673 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.3829, allocations: 47.98 kB / 0.6731 GB, free: 13.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0004175/0.3833, allocations: 246.6 kB / 0.6733 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.3835, allocations: 94.89 kB / 0.6734 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.3872, allocations: 1.856 MB / 0.6752 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3872, allocations: 12 kB / 0.6752 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3872, allocations: 8 kB / 0.6752 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.3872, allocations: 11.97 kB / 0.6752 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00504/0.3923, allocations: 3.174 MB / 0.6783 GB, free: 7.566 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3923, allocations: 4 kB / 0.6783 GB, free: 7.562 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.3932, allocations: 251.8 kB / 0.6786 GB, free: 7.316 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009513/0.3942, allocations: 314.4 kB / 0.6789 GB, free: 6.984 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.3943, allocations: 51.97 kB / 0.6789 GB, free: 6.934 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/0.4019, allocations: 11.25 MB / 0.6899 GB, free: 10.62 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4019, allocations: 4.125 kB / 0.6899 GB, free: 10.61 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00425/0.4061, allocations: 2.515 MB / 0.6924 GB, free: 8.047 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.4064, allocations: 167.8 kB / 0.6925 GB, free: 7.863 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.4065, allocations: 32 kB / 0.6926 GB, free: 7.832 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007978/0.4073, allocations: 100 kB / 0.6927 GB, free: 7.734 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.4076, allocations: 121.2 kB / 0.6928 GB, free: 7.617 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.4077, allocations: 55.95 kB / 0.6928 GB, free: 7.562 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0003911/0.4081, allocations: 371 kB / 0.6932 GB, free: 7.203 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4081, allocations: 0 / 0.6932 GB, free: 7.203 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.001397/0.4095, allocations: 455.8 kB / 0.6936 GB, free: 6.758 MB / 0.4949 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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000679/0.4102, allocations: 453.7 kB / 0.6941 GB, free: 6.305 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.003329/0.4136, allocations: 2.325 MB / 0.6963 GB, free: 3.863 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4136, allocations: 4 kB / 0.6963 GB, free: 3.859 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.4159, allocations: 1.794 MB / 0.6981 GB, free: 1.945 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.4173, allocations: 286.5 kB / 0.6984 GB, free: 1.672 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003898/0.4212, allocations: 3.088 MB / 0.7014 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000553/0.4217, allocations: 1.057 MB / 0.7024 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0007788/0.4225, allocations: 219.7 kB / 0.7026 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/0.4228, allocations: 107.4 kB / 0.7027 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of SimCode: time 2.81e-07/0.4228, allocations: 3.938 kB / 0.7027 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of Templates: time 0.03262/0.4554, allocations: 22.98 MB / 0.7252 GB, free: 6.273 MB / 0.5261 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches