Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_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.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/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_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_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.000954/0.0009541, allocations: 177.7 kB / 15.43 MB, free: 5.766 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.231/1.231, 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.0007649/0.0007649, allocations: 94.03 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.1-main/package.mo): time 0.6197/0.6197, allocations: 91.64 MB / 435.8 MB, free: 23.56 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002672, allocations: 8 kB / 0.5038 GB, free: 8.309 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2831, allocations: 69.29 MB / 0.5714 GB, free: 45.54 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1227/0.4058, allocations: 133.4 MB / 0.7017 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004765/0.4106, allocations: 5.444 MB / 0.707 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.4109, allocations: 0 / 0.707 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0005632/0.4115, allocations: 171.1 kB / 0.7072 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0006173/0.4121, allocations: 262.7 kB / 0.7074 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008994/0.413, allocations: 398.6 kB / 0.7078 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0008107/0.4139, allocations: 0.8298 MB / 0.7086 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.414, allocations: 82.34 kB / 0.7087 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005536/0.4146, allocations: 302.9 kB / 0.709 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004483/0.4151, allocations: 315 kB / 0.7093 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.4151, allocations: 16 kB / 0.7093 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009516/0.4161, allocations: 0.5417 MB / 0.7098 GB, free: 12.52 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 9.041e-05/0.4162, allocations: 75.72 kB / 0.7099 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000179/0.4164, allocations: 196.8 kB / 0.7101 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0007912/0.4172, allocations: 0.5785 MB / 0.7106 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.4172, allocations: 4 kB / 0.7106 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4172, allocations: 0 / 0.7106 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.4172, allocations: 0 / 0.7106 GB, free: 11.66 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.00131/0.4185, allocations: 0.6484 MB / 0.7113 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4186, allocations: 15.97 kB / 0.7113 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.733e-05/0.4187, allocations: 36.47 kB / 0.7113 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.419, allocations: 300.7 kB / 0.7116 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.419, allocations: 20.94 kB / 0.7116 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.4191, allocations: 24.38 kB / 0.7116 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.4197, allocations: 400.8 kB / 0.712 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.4197, allocations: 0 / 0.712 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.4197, allocations: 15.98 kB / 0.712 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.081e-05/0.4198, allocations: 16.55 kB / 0.7121 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006957/0.4205, allocations: 489.8 kB / 0.7125 GB, free: 9.637 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.4224, allocations: 1.497 MB / 0.714 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006198/0.423, allocations: 434.3 kB / 0.7144 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003631/0.4234, allocations: 280.7 kB / 0.7147 GB, free: 7.273 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.4235, allocations: 101.1 kB / 0.7148 GB, free: 7.156 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.4235, allocations: 34.56 kB / 0.7148 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=38): time 1.904e-06/0.4235, allocations: 0 / 0.7148 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.002674/0.4262, allocations: 1.805 MB / 0.7166 GB, free: 5.199 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.4263, allocations: 55.41 kB / 0.7166 GB, free: 5.133 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.4265, allocations: 213 kB / 0.7168 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.4265, allocations: 33.7 kB / 0.7169 GB, free: 4.875 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.4266, allocations: 140.9 kB / 0.717 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.4267, allocations: 145.9 kB / 0.7171 GB, free: 4.59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/0.4267, allocations: 8 kB / 0.7171 GB, free: 4.582 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4268, allocations: 342.8 kB / 0.7175 GB, free: 4.238 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.4271, allocations: 203.8 kB / 0.7177 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.4274, allocations: 207.3 kB / 0.7179 GB, free: 3.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006079/0.428, allocations: 460.8 kB / 0.7183 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.428, allocations: 0 / 0.7183 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009161/0.4289, allocations: 0.6186 MB / 0.7189 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.429, allocations: 4 kB / 0.7189 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.429, allocations: 3.984 kB / 0.7189 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003446/0.4293, allocations: 124.7 kB / 0.719 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.4296, allocations: 51.89 kB / 0.7191 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.4317, allocations: 2.119 MB / 0.7211 GB, free: 324 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.432, allocations: 11.94 kB / 0.7212 GB, free: 312 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.432, allocations: 20.03 kB / 0.7212 GB, free: 292 kB / 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.0001478/0.4322, allocations: 154.3 kB / 0.7213 GB, free: 128 kB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.4322, allocations: 39.55 kB / 0.7214 GB, free: 88 kB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.4333, allocations: 0.6736 MB / 0.722 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.4333, allocations: 4 kB / 0.722 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4333, allocations: 96 / 0.722 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.4333, allocations: 11.91 kB / 0.722 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005062/0.4339, allocations: 493 kB / 0.7225 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4339, allocations: 4 kB / 0.7225 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.4341, allocations: 39.95 kB / 0.7225 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003047/0.4344, allocations: 120.8 kB / 0.7227 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.4345, allocations: 19.98 kB / 0.7227 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.4365, allocations: 2.12 MB / 0.7247 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.4366, allocations: 0 / 0.7247 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.4379, allocations: 1.004 MB / 0.7257 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.4379, allocations: 108.8 kB / 0.7258 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.438, allocations: 4 kB / 0.7258 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.4382, allocations: 16 kB / 0.7259 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.4383, allocations: 35.88 kB / 0.7259 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.4383, allocations: 15.98 kB / 0.7259 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001197/0.4384, allocations: 160.5 kB / 0.7261 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4385, allocations: 4 kB / 0.7261 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0004636/0.4389, allocations: 115.9 kB / 0.7262 GB, free: 10.93 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.000249/0.4392, allocations: 195.3 kB / 0.7264 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001109/0.4403, allocations: 0.7735 MB / 0.7271 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4403, allocations: 0 / 0.7271 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007467/0.4411, allocations: 0.5502 MB / 0.7276 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.4416, allocations: 72.42 kB / 0.7277 GB, free: 9.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.443, allocations: 1.07 MB / 0.7288 GB, free: 8.176 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.4433, allocations: 0.804 MB / 0.7295 GB, free: 7.348 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002342/0.4436, allocations: 78.86 kB / 0.7296 GB, free: 7.266 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.4437, allocations: 35.41 kB / 0.7297 GB, free: 7.23 MB / 0.5261 GB Notification: Performance of SimCode: time 3.2e-07/0.4437, allocations: 4 kB / 0.7297 GB, free: 7.227 MB / 0.5261 GB Notification: Performance of Templates: time 0.01091/0.4546, allocations: 6.781 MB / 0.7363 GB, free: 488 kB / 0.5261 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches