Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_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.006446/0.006446, allocations: 99.11 kB / 15.73 MB, free: 6.051 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.001388/0.001388, allocations: 202.4 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.676/0.676, allocations: 91.21 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 83.86 kB / 0.5164 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1258, allocations: 67.68 MB / 0.5825 GB, free: 5.734 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.052/1.178, allocations: 362.1 MB / 0.9361 GB, free: 0.7617 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03772/1.215, allocations: 38.63 MB / 0.9738 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/1.218, allocations: 68.06 kB / 0.9738 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004727/1.222, allocations: 2.055 MB / 0.9758 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02168/1.244, allocations: 8.782 MB / 0.9844 GB, free: 10.4 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01161/1.256, allocations: 4.24 MB / 0.9886 GB, free: 7.367 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005975/1.262, allocations: 3.919 MB / 0.9924 GB, free: 4.418 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/1.263, allocations: 1.184 MB / 0.9935 GB, free: 3.219 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005222/1.268, allocations: 2.569 MB / 0.9961 GB, free: 1.02 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/1.271, allocations: 1.769 MB / 0.9978 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004489/1.271, allocations: 247.9 kB / 0.998 GB, free: 15.19 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03056/1.302, allocations: 16.53 MB / 1.014 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001336/1.303, allocations: 0.8509 MB / 1.015 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.002104/1.305, allocations: 1.435 MB / 1.016 GB, free: 14.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02451/1.33, allocations: 10.03 MB / 1.026 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/1.33, allocations: 0 / 1.026 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/1.33, allocations: 0 / 1.026 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.891e-05/1.33, allocations: 0 / 1.026 GB, free: 5.066 MB / 0.7169 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.01139/1.342, allocations: 4.632 MB / 1.031 GB, free: 432 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.342, allocations: 8.031 kB / 1.031 GB, free: 424 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003694/1.342, allocations: 285 kB / 1.031 GB, free: 136 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006903/1.343, allocations: 312.5 kB / 1.031 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002871/1.346, allocations: 1.632 MB / 1.033 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.998e-05/1.346, allocations: 142 kB / 1.033 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003098/1.346, allocations: 196.8 kB / 1.033 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004437/1.35, allocations: 3.097 MB / 1.036 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/1.35, allocations: 3.938 kB / 1.036 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001753/1.351, allocations: 77.94 kB / 1.036 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002149/1.351, allocations: 183.8 kB / 1.036 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/1.355, allocations: 3.389 MB / 1.04 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0137/1.369, allocations: 12.42 MB / 1.052 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/1.372, allocations: 1.656 MB / 1.054 GB, free: 8.004 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001871/1.374, allocations: 1.418 MB / 1.055 GB, free: 6.582 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002911/1.377, allocations: 3.856 MB / 1.059 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/1.377, allocations: 56.55 kB / 1.059 GB, free: 1.848 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=196): time 4.449e-06/1.377, allocations: 0 / 1.059 GB, free: 1.848 MB / 0.7481 GB Notification: Performance of matching and sorting (n=200): time 0.01482/1.391, allocations: 8.583 MB / 1.067 GB, free: 9.066 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/1.392, allocations: 99.11 kB / 1.067 GB, free: 8.953 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00205/1.394, allocations: 1.43 MB / 1.069 GB, free: 7.52 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002334/1.394, allocations: 53.7 kB / 1.069 GB, free: 7.461 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006275/1.395, allocations: 0.9083 MB / 1.07 GB, free: 6.543 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006567/1.395, allocations: 0.7066 MB / 1.07 GB, free: 5.848 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006067/1.396, allocations: 351.5 kB / 1.071 GB, free: 5.508 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.797e-05/1.396, allocations: 301.1 kB / 1.071 GB, free: 5.211 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/1.398, allocations: 1.031 MB / 1.072 GB, free: 4.18 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/1.399, allocations: 1.155 MB / 1.073 GB, free: 3.016 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/1.403, allocations: 2.347 MB / 1.075 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/1.403, allocations: 4 kB / 1.075 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005625/1.409, allocations: 3.083 MB / 1.078 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/1.409, allocations: 9.547 kB / 1.078 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/1.409, allocations: 0 / 1.078 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/1.41, allocations: 468.7 kB / 1.079 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/1.412, allocations: 339.2 kB / 1.079 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007772/1.42, allocations: 6.348 MB / 1.085 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/1.421, allocations: 40.05 kB / 1.085 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004603/1.421, allocations: 122.6 kB / 1.085 GB, free: 6.062 MB / 0.7794 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.001272/1.423, allocations: 0.5245 MB / 1.086 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007477/1.423, allocations: 214.6 kB / 1.086 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008145/1.432, allocations: 4.656 MB / 1.091 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.325e-05/1.432, allocations: 23.98 kB / 1.091 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/1.432, allocations: 8 kB / 1.091 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/1.432, allocations: 7.969 kB / 1.091 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/1.444, allocations: 6.288 MB / 1.097 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/1.444, allocations: 4 kB / 1.097 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.445, allocations: 299.6 kB / 1.097 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/1.447, allocations: 0.4886 MB / 1.098 GB, free: 9.543 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002402/1.447, allocations: 89.91 kB / 1.098 GB, free: 9.457 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007924/1.455, allocations: 6.363 MB / 1.104 GB, free: 2.832 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.455, allocations: 4 kB / 1.104 GB, free: 2.828 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008611/1.464, allocations: 4.808 MB / 1.109 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007283/1.464, allocations: 279.7 kB / 1.109 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006119/1.465, allocations: 44 kB / 1.109 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/1.466, allocations: 41.39 kB / 1.109 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/1.467, allocations: 173.6 kB / 1.109 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.467, allocations: 114.8 kB / 1.109 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00181/1.469, allocations: 1.095 MB / 1.11 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.51e-07/1.469, allocations: 0 / 1.11 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005212/1.474, allocations: 1.675 MB / 1.112 GB, free: 10.56 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.01344/1.488, allocations: 7.357 MB / 1.119 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005977/1.494, allocations: 3.11 MB / 1.122 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/1.494, allocations: 0 / 1.122 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.003612/1.497, allocations: 1.925 MB / 1.124 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005501/1.503, allocations: 0.8063 MB / 1.125 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03685/1.54, allocations: 19.99 MB / 1.144 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/1.542, allocations: 1.758 MB / 1.146 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0032/1.545, allocations: 1.282 MB / 1.147 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001777/1.547, allocations: 1.042 MB / 1.148 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of SimCode: time 9.12e-07/1.547, allocations: 0 / 1.148 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4342/1.981, allocations: 92.51 MB / 1.239 GB, free: 334 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/18.43, allocations: 10.67 kB / 1.239 GB, free: 334 MB / 0.8419 GB (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches