Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.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.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009586/0.0009585, allocations: 176.1 kB / 15.43 MB, free: 5.77 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.193/1.193, allocations: 225.7 MB / 241.9 MB, free: 392 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.000723/0.0007231, allocations: 98.64 kB / 293.1 MB, free: 12.89 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.6008/0.6008, allocations: 90.99 MB / 435.2 MB, free: 24.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002724/0.0002724, allocations: 8 kB / 0.5029 GB, free: 9.391 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2673, allocations: 69.09 MB / 0.5704 GB, free: 45.6 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1187/0.386, allocations: 133.4 MB / 0.7007 GB, free: 6.273 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004502/0.3906, allocations: 5.44 MB / 0.706 GB, free: 0.5469 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.3907, allocations: 7.938 kB / 0.706 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004839/0.3912, allocations: 167.1 kB / 0.7061 GB, free: 384 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.3917, allocations: 258.7 kB / 0.7064 GB, free: 124 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007331/0.3924, allocations: 386.7 kB / 0.7068 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0006862/0.3931, allocations: 0.8298 MB / 0.7076 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.3933, allocations: 90.31 kB / 0.7077 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004527/0.3937, allocations: 306.8 kB / 0.7079 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003863/0.3941, allocations: 307 kB / 0.7082 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.3942, allocations: 19.94 kB / 0.7083 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008914/0.3951, allocations: 0.5417 MB / 0.7088 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 8.76e-05/0.3952, allocations: 79.72 kB / 0.7089 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001621/0.3953, allocations: 188.9 kB / 0.709 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0006786/0.396, allocations: 0.5823 MB / 0.7096 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.396, allocations: 0 / 0.7096 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.685e-06/0.3961, allocations: 4 kB / 0.7096 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.3961, allocations: 0 / 0.7096 GB, free: 12.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001211/0.3973, allocations: 0.6511 MB / 0.7102 GB, free: 12.11 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3973, allocations: 15.98 kB / 0.7103 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.3974, allocations: 36.56 kB / 0.7103 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.3977, allocations: 303.3 kB / 0.7106 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3977, allocations: 16.94 kB / 0.7106 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.3978, allocations: 24.38 kB / 0.7106 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.3984, allocations: 404.8 kB / 0.711 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3984, allocations: 0 / 0.711 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.3984, allocations: 11.98 kB / 0.711 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/0.3985, allocations: 24.48 kB / 0.711 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007071/0.3992, allocations: 489.8 kB / 0.7115 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.401, allocations: 1.497 MB / 0.713 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/0.4016, allocations: 434.3 kB / 0.7134 GB, free: 8.684 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003417/0.402, allocations: 272.7 kB / 0.7137 GB, free: 8.414 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.4021, allocations: 101.1 kB / 0.7137 GB, free: 8.297 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.4021, allocations: 38.56 kB / 0.7138 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=38): time 1.643e-06/0.4022, allocations: 0 / 0.7138 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.00268/0.4048, allocations: 1.801 MB / 0.7155 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.4049, allocations: 55.41 kB / 0.7156 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.4051, allocations: 225 kB / 0.7158 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.4051, allocations: 33.7 kB / 0.7158 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.4052, allocations: 144.9 kB / 0.716 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.4053, allocations: 137.9 kB / 0.7161 GB, free: 5.727 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/0.4053, allocations: 12 kB / 0.7161 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4055, allocations: 338.8 kB / 0.7164 GB, free: 5.375 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.4057, allocations: 199.8 kB / 0.7166 GB, free: 5.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.406, allocations: 207.9 kB / 0.7168 GB, free: 4.977 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.4066, allocations: 460.8 kB / 0.7173 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4066, allocations: 0 / 0.7173 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009314/0.4076, allocations: 0.6225 MB / 0.7179 GB, free: 3.891 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.4076, allocations: 4 kB / 0.7179 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.4076, allocations: 0 / 0.7179 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.408, allocations: 120.7 kB / 0.718 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.4082, allocations: 55.89 kB / 0.7181 GB, free: 3.711 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.4104, allocations: 2.112 MB / 0.7201 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.4106, allocations: 15.97 kB / 0.7201 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.4106, allocations: 15.98 kB / 0.7201 GB, free: 1.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.4108, allocations: 153.8 kB / 0.7203 GB, free: 1.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.4108, allocations: 39.5 kB / 0.7203 GB, free: 1.23 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.4119, allocations: 0.6814 MB / 0.721 GB, free: 0.5391 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.4119, allocations: 4 kB / 0.721 GB, free: 0.5352 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-06/0.412, allocations: 0 / 0.721 GB, free: 0.5352 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.412, allocations: 11.86 kB / 0.721 GB, free: 0.5234 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004997/0.4125, allocations: 473.2 kB / 0.7215 GB, free: 12 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4125, allocations: 4 kB / 0.7215 GB, free: 8 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.4127, allocations: 51.94 kB / 0.7215 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002954/0.413, allocations: 124.8 kB / 0.7216 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.4131, allocations: 15.98 kB / 0.7217 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.4152, allocations: 2.127 MB / 0.7237 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4152, allocations: 0 / 0.7237 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.4165, allocations: 1.004 MB / 0.7247 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.62e-05/0.4166, allocations: 104.9 kB / 0.7248 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.4166, allocations: 11.94 kB / 0.7248 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.4168, allocations: 8 kB / 0.7248 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.4169, allocations: 39.88 kB / 0.7249 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.417, allocations: 11.98 kB / 0.7249 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001313/0.4171, allocations: 160.5 kB / 0.725 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4171, allocations: 4 kB / 0.725 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00045/0.4176, allocations: 119.9 kB / 0.7251 GB, free: 12.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002579/0.4178, allocations: 195.3 kB / 0.7253 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001095/0.4189, allocations: 0.7631 MB / 0.7261 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4189, allocations: 0 / 0.7261 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007528/0.4197, allocations: 0.554 MB / 0.7266 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.4202, allocations: 81.39 kB / 0.7267 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.4216, allocations: 1.059 MB / 0.7277 GB, free: 9.32 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.422, allocations: 0.804 MB / 0.7285 GB, free: 8.488 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002182/0.4222, allocations: 86.84 kB / 0.7286 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.358e-05/0.4223, allocations: 35.41 kB / 0.7286 GB, free: 8.363 MB / 0.5261 GB Notification: Performance of SimCode: time 3.1e-07/0.4223, allocations: 3.938 kB / 0.7286 GB, free: 8.359 MB / 0.5261 GB Notification: Performance of Templates: time 0.01058/0.4329, allocations: 6.79 MB / 0.7353 GB, free: 1.602 MB / 0.5261 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches