Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.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.TestJunctionNM,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM",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.009147/0.009148, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.002168/0.002168, allocations: 199.2 kB / 16.68 MB, free: 5.977 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7885/0.7885, allocations: 93.71 MB / 384.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 75.86 kB / 0.52 GB, free: 6.316 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1677, allocations: 68.28 MB / 0.5866 GB, free: 1.965 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.265/1.433, allocations: 362.1 MB / 0.9402 GB, free: 1.367 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03767/1.471, allocations: 38.68 MB / 0.978 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003046/1.474, allocations: 79.28 kB / 0.9781 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.005184/1.479, allocations: 1.972 MB / 0.98 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.02492/1.504, allocations: 8.699 MB / 0.9885 GB, free: 12.96 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.01251/1.516, allocations: 4.225 MB / 0.9926 GB, free: 11.78 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0066/1.523, allocations: 4.003 MB / 0.9965 GB, free: 11.29 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/1.525, allocations: 1.191 MB / 0.9977 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006367/1.531, allocations: 2.572 MB / 1 GB, free: 9.488 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003707/1.535, allocations: 1.775 MB / 1.002 GB, free: 8.227 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.000659/1.536, allocations: 244 kB / 1.002 GB, free: 7.988 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03435/1.57, allocations: 16.52 MB / 1.018 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001728/1.572, allocations: 0.8473 MB / 1.019 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003055/1.575, allocations: 1.439 MB / 1.021 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.03086/1.606, allocations: 10.06 MB / 1.03 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/1.606, allocations: 0 / 1.03 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.913e-06/1.606, allocations: 0 / 1.03 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001167/1.606, allocations: 0 / 1.03 GB, free: 13.85 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.0131/1.619, allocations: 4.668 MB / 1.035 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/1.619, allocations: 8.031 kB / 1.035 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005304/1.62, allocations: 281.1 kB / 1.035 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008168/1.62, allocations: 310.1 kB / 1.036 GB, free: 8.586 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/1.624, allocations: 1.685 MB / 1.037 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/1.624, allocations: 141.9 kB / 1.037 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/1.624, allocations: 198 kB / 1.037 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004988/1.629, allocations: 3.09 MB / 1.04 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/1.629, allocations: 4 kB / 1.041 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/1.629, allocations: 78.16 kB / 1.041 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002522/1.63, allocations: 179.9 kB / 1.041 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005057/1.635, allocations: 3.385 MB / 1.044 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/1.651, allocations: 12.45 MB / 1.056 GB, free: 2.367 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/1.654, allocations: 1.648 MB / 1.058 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/1.656, allocations: 1.426 MB / 1.059 GB, free: 15.28 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003302/1.66, allocations: 3.846 MB / 1.063 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/1.66, allocations: 56.56 kB / 1.063 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 5.48e-06/1.66, allocations: 0 / 1.063 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01652/1.676, allocations: 8.604 MB / 1.071 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/1.676, allocations: 103.1 kB / 1.072 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/1.679, allocations: 1.471 MB / 1.073 GB, free: 164 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002968/1.679, allocations: 61.69 kB / 1.073 GB, free: 96 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007762/1.68, allocations: 0.9171 MB / 1.074 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007056/1.681, allocations: 0.7101 MB / 1.075 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006138/1.681, allocations: 341.9 kB / 1.075 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001312/1.681, allocations: 309.1 kB / 1.075 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/1.683, allocations: 1.027 MB / 1.076 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/1.685, allocations: 1.159 MB / 1.077 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003692/1.689, allocations: 2.352 MB / 1.08 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.689, allocations: 0 / 1.08 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.00577/1.694, allocations: 3.086 MB / 1.083 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/1.694, allocations: 10.03 kB / 1.083 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/1.694, allocations: 0 / 1.083 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/1.696, allocations: 476.8 kB / 1.083 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/1.697, allocations: 333.2 kB / 1.083 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/1.706, allocations: 6.351 MB / 1.09 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/1.707, allocations: 43.41 kB / 1.09 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003747/1.708, allocations: 115.9 kB / 1.09 GB, free: 14.67 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (172): * Single equations (assignments): 160 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001269/1.709, allocations: 0.5294 MB / 1.09 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006548/1.71, allocations: 222.5 kB / 1.091 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008093/1.718, allocations: 4.649 MB / 1.095 GB, free: 9.262 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/1.718, allocations: 24 kB / 1.095 GB, free: 9.238 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-05/1.718, allocations: 15.11 kB / 1.095 GB, free: 9.227 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.537e-05/1.718, allocations: 11.97 kB / 1.095 GB, free: 9.215 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/1.729, allocations: 6.295 MB / 1.101 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/1.729, allocations: 0 / 1.101 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/1.73, allocations: 300.4 kB / 1.102 GB, free: 2.652 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/1.732, allocations: 0.4959 MB / 1.102 GB, free: 2.156 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/1.732, allocations: 79.94 kB / 1.102 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008503/1.741, allocations: 6.356 MB / 1.108 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.782e-06/1.741, allocations: 8 kB / 1.108 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008575/1.749, allocations: 4.8 MB / 1.113 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009366/1.75, allocations: 291.6 kB / 1.113 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/1.751, allocations: 49.95 kB / 1.113 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009256/1.752, allocations: 45.16 kB / 1.113 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000389/1.752, allocations: 167 kB / 1.114 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/1.752, allocations: 111.9 kB / 1.114 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001736/1.754, allocations: 1.123 MB / 1.115 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/1.754, allocations: 0 / 1.115 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005965/1.76, allocations: 1.679 MB / 1.116 GB, free: 3.195 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (160): * Single equations (assignments): 148 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01412/1.774, allocations: 7.359 MB / 1.124 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.005675/1.78, allocations: 3.107 MB / 1.127 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/1.78, allocations: 4 kB / 1.127 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.003395/1.783, allocations: 1.92 MB / 1.129 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/1.787, allocations: 0.8042 MB / 1.129 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03615/1.823, allocations: 20.15 MB / 1.149 GB, free: 1.879 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/1.825, allocations: 1.766 MB / 1.151 GB, free: 76 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003258/1.828, allocations: 1.291 MB / 1.152 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/1.83, allocations: 1.061 MB / 1.153 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of SimCode: time 1.032e-06/1.83, allocations: 0 / 1.153 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5077/2.338, allocations: 92.96 MB / 1.244 GB, free: 379.9 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.9/19.24, allocations: 14.5 kB / 1.244 GB, free: 379.9 MB / 0.8731 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches