Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009604/0.009604, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.002144/0.002144, allocations: 199.5 kB / 16.68 MB, free: 5.965 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6782/0.6782, allocations: 91.19 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 79.88 kB / 0.5164 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1376, allocations: 67.69 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4556/0.5933, allocations: 144.5 MB / 0.7236 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005693/0.5991, allocations: 4.543 MB / 0.728 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005144/0.5996, allocations: 23.81 kB / 0.728 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009594/0.6006, allocations: 206.7 kB / 0.7282 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001099/0.6018, allocations: 290.3 kB / 0.7285 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.6031, allocations: 430.4 kB / 0.7289 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009336/0.6041, allocations: 0.666 MB / 0.7296 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.6044, allocations: 122.5 kB / 0.7297 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008057/0.6052, allocations: 354.6 kB / 0.73 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005478/0.6058, allocations: 334.8 kB / 0.7303 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.839e-05/0.6058, allocations: 28 kB / 0.7304 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009779/0.6068, allocations: 455.1 kB / 0.7308 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.607, allocations: 103.7 kB / 0.7309 GB, free: 488 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002951/0.6073, allocations: 202.9 kB / 0.7311 GB, free: 284 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.6085, allocations: 0.6341 MB / 0.7317 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.6085, allocations: 0 / 0.7317 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6085, allocations: 0 / 0.7317 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.382e-05/0.6085, allocations: 0 / 0.7317 GB, free: 15.64 MB / 0.5762 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.001666/0.6102, allocations: 0.8059 MB / 0.7325 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.6102, allocations: 12.03 kB / 0.7325 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.397e-05/0.6103, allocations: 62.72 kB / 0.7326 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.6104, allocations: 44.66 kB / 0.7326 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006947/0.6111, allocations: 462.3 kB / 0.733 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.6112, allocations: 24.92 kB / 0.7331 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.249e-05/0.6112, allocations: 24.56 kB / 0.7331 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.6119, allocations: 441.2 kB / 0.7335 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.6119, allocations: 0 / 0.7335 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.612, allocations: 12 kB / 0.7335 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/0.612, allocations: 20.55 kB / 0.7335 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006943/0.6127, allocations: 485.8 kB / 0.734 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.6148, allocations: 1.431 MB / 0.7354 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.6152, allocations: 250.5 kB / 0.7356 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.6155, allocations: 212.7 kB / 0.7358 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002664/0.6158, allocations: 332.9 kB / 0.7362 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.6158, allocations: 38.56 kB / 0.7362 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.413e-06/0.6159, allocations: 0 / 0.7362 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002496/0.6184, allocations: 1.528 MB / 0.7377 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.6184, allocations: 59.34 kB / 0.7377 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.6188, allocations: 370 kB / 0.7381 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.6188, allocations: 33.7 kB / 0.7381 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.6189, allocations: 188.6 kB / 0.7383 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.619, allocations: 126.9 kB / 0.7384 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.6192, allocations: 65.67 kB / 0.7385 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.6193, allocations: 358.7 kB / 0.7388 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.6195, allocations: 143.9 kB / 0.739 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.6198, allocations: 151.8 kB / 0.7391 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004972/0.6203, allocations: 336.6 kB / 0.7394 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.6203, allocations: 0 / 0.7394 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008486/0.6211, allocations: 0.5255 MB / 0.74 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.6212, allocations: 7.938 kB / 0.74 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.6212, allocations: 0.5 kB / 0.74 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003443/0.6215, allocations: 118.2 kB / 0.7401 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.6218, allocations: 59.83 kB / 0.7401 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.6241, allocations: 2.323 MB / 0.7424 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.6244, allocations: 19.98 kB / 0.7424 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.6244, allocations: 11.98 kB / 0.7424 GB, free: 4.051 MB / 0.5762 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001787/0.6246, allocations: 160.4 kB / 0.7426 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.383e-05/0.6247, allocations: 51.64 kB / 0.7426 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009818/0.6257, allocations: 0.6583 MB / 0.7433 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.6257, allocations: 0 / 0.7433 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.6257, allocations: 4 kB / 0.7433 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.6257, allocations: 0 / 0.7433 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000437/0.6261, allocations: 433.3 kB / 0.7437 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.6262, allocations: 3.938 kB / 0.7437 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.6263, allocations: 39.83 kB / 0.7437 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003166/0.6267, allocations: 128.7 kB / 0.7439 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.6267, allocations: 11.98 kB / 0.7439 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00231/0.629, allocations: 2.332 MB / 0.7461 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.629, allocations: 0 / 0.7461 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.6301, allocations: 0.6613 MB / 0.7468 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.23e-05/0.6302, allocations: 104.9 kB / 0.7469 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.6302, allocations: 8.047 kB / 0.7469 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.6304, allocations: 11.98 kB / 0.7469 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.6305, allocations: 23.95 kB / 0.7469 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.6305, allocations: 12.86 kB / 0.7469 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002884/0.6308, allocations: 295.1 kB / 0.7472 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6308, allocations: 0 / 0.7472 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004855/0.6313, allocations: 119.9 kB / 0.7473 GB, free: 14.75 MB / 0.5919 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001385/0.6327, allocations: 1.262 MB / 0.7486 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009424/0.6337, allocations: 0.5255 MB / 0.7491 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6337, allocations: 112 / 0.7491 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006053/0.6343, allocations: 374.1 kB / 0.7494 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005829/0.6349, allocations: 102.5 kB / 0.7495 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005326/0.6402, allocations: 4.026 MB / 0.7535 GB, free: 8.324 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.6406, allocations: 0.8308 MB / 0.7543 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002779/0.6409, allocations: 91.22 kB / 0.7544 GB, free: 7.379 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.6411, allocations: 135.4 kB / 0.7545 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of SimCode: time 7.21e-07/0.6412, allocations: 0 / 0.7545 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03356/0.6747, allocations: 11.59 MB / 0.7658 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/11.17, allocations: 13.73 kB / 0.7658 GB, free: 11.8 MB / 0.6075 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches