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.006951/0.006951, allocations: 102 kB / 15.73 MB, free: 6.441 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.001487/0.001487, allocations: 196.1 kB / 16.67 MB, free: 6.352 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6237/0.6237, allocations: 91.19 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 75.88 kB / 0.5164 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1211, allocations: 67.7 MB / 0.5825 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9341/1.055, allocations: 362.1 MB / 0.936 GB, free: 0.7969 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03407/1.089, allocations: 38.62 MB / 0.9738 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002356/1.092, allocations: 71.81 kB / 0.9738 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004858/1.097, allocations: 2.055 MB / 0.9758 GB, free: 13.08 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02205/1.119, allocations: 8.772 MB / 0.9844 GB, free: 10.4 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01143/1.13, allocations: 4.246 MB / 0.9886 GB, free: 7.379 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005969/1.136, allocations: 3.919 MB / 0.9924 GB, free: 4.43 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001814/1.138, allocations: 1.178 MB / 0.9935 GB, free: 3.238 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006322/1.144, allocations: 2.574 MB / 0.996 GB, free: 1.031 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002911/1.147, allocations: 1.761 MB / 0.9978 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0004314/1.148, allocations: 244 kB / 0.998 GB, free: 15.21 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03006/1.178, allocations: 16.54 MB / 1.014 GB, free: 0.668 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001374/1.179, allocations: 0.8571 MB / 1.015 GB, free: 15.84 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.002152/1.181, allocations: 1.434 MB / 1.016 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02511/1.207, allocations: 10.03 MB / 1.026 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/1.207, allocations: 0 / 1.026 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.595e-06/1.207, allocations: 0 / 1.026 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.773e-05/1.207, allocations: 3.938 kB / 1.026 GB, free: 5.07 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.01048/1.217, allocations: 4.635 MB / 1.031 GB, free: 436 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/1.217, allocations: 8.031 kB / 1.031 GB, free: 428 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003593/1.218, allocations: 280.8 kB / 1.031 GB, free: 144 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007425/1.218, allocations: 314 kB / 1.031 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/1.221, allocations: 1.632 MB / 1.033 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.256e-05/1.221, allocations: 141.3 kB / 1.033 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002645/1.221, allocations: 197.7 kB / 1.033 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004419/1.226, allocations: 3.098 MB / 1.036 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/1.226, allocations: 6.609 kB / 1.036 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/1.226, allocations: 77.55 kB / 1.036 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002331/1.226, allocations: 183.8 kB / 1.036 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004453/1.231, allocations: 3.385 MB / 1.04 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/1.244, allocations: 12.42 MB / 1.052 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002334/1.246, allocations: 1.655 MB / 1.054 GB, free: 8.012 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/1.248, allocations: 1.425 MB / 1.055 GB, free: 6.586 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/1.25, allocations: 3.85 MB / 1.059 GB, free: 1.926 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/1.25, allocations: 60.5 kB / 1.059 GB, free: 1.855 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=196): time 4.508e-06/1.25, allocations: 0 / 1.059 GB, free: 1.855 MB / 0.7481 GB Notification: Performance of matching and sorting (n=200): time 0.01358/1.264, allocations: 8.583 MB / 1.067 GB, free: 9.066 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/1.264, allocations: 99.11 kB / 1.067 GB, free: 8.953 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/1.266, allocations: 1.426 MB / 1.069 GB, free: 7.523 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001305/1.266, allocations: 61.61 kB / 1.069 GB, free: 7.461 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005904/1.267, allocations: 0.9117 MB / 1.07 GB, free: 6.543 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004954/1.267, allocations: 0.7023 MB / 1.07 GB, free: 5.852 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005574/1.268, allocations: 346.5 kB / 1.071 GB, free: 5.512 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.277e-05/1.268, allocations: 305.1 kB / 1.071 GB, free: 5.211 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/1.269, allocations: 1.027 MB / 1.072 GB, free: 4.184 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/1.271, allocations: 1.155 MB / 1.073 GB, free: 3.02 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/1.274, allocations: 2.348 MB / 1.075 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/1.274, allocations: 4 kB / 1.075 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005011/1.279, allocations: 3.077 MB / 1.078 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/1.279, allocations: 8 kB / 1.078 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/1.279, allocations: 0 / 1.078 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/1.281, allocations: 475.7 kB / 1.079 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.282, allocations: 335.3 kB / 1.079 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007483/1.29, allocations: 6.348 MB / 1.085 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/1.291, allocations: 51.7 kB / 1.085 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006328/1.292, allocations: 115.9 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.001699/1.294, allocations: 0.5213 MB / 1.086 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/1.295, allocations: 214.6 kB / 1.086 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008869/1.304, allocations: 4.658 MB / 1.091 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.627e-05/1.304, allocations: 20 kB / 1.091 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.267e-05/1.304, allocations: 8 kB / 1.091 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-05/1.304, allocations: 7.969 kB / 1.091 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009877/1.314, allocations: 6.285 MB / 1.097 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/1.314, allocations: 4 kB / 1.097 GB, free: 10.34 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/1.315, allocations: 303.5 kB / 1.097 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001385/1.316, allocations: 0.4929 MB / 1.098 GB, free: 9.543 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002029/1.316, allocations: 81.92 kB / 1.098 GB, free: 9.465 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007219/1.324, allocations: 6.356 MB / 1.104 GB, free: 2.844 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.324, allocations: 7.938 kB / 1.104 GB, free: 2.836 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007754/1.331, allocations: 4.809 MB / 1.109 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006736/1.332, allocations: 275.7 kB / 1.109 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005025/1.333, allocations: 46.03 kB / 1.109 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.334, allocations: 47.33 kB / 1.109 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/1.334, allocations: 169.7 kB / 1.109 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/1.334, allocations: 111.9 kB / 1.109 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001629/1.336, allocations: 1.102 MB / 1.11 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/1.336, allocations: 3.938 kB / 1.11 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004274/1.34, allocations: 1.671 MB / 1.112 GB, free: 10.57 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.01222/1.352, allocations: 7.354 MB / 1.119 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005355/1.358, allocations: 3.115 MB / 1.122 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/1.358, allocations: 0 / 1.122 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.003283/1.361, allocations: 1.921 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.003918/1.365, allocations: 0.8066 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.03092/1.396, allocations: 19.99 MB / 1.144 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/1.398, allocations: 1.754 MB / 1.146 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002627/1.4, allocations: 1.282 MB / 1.147 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/1.402, allocations: 1.042 MB / 1.148 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of SimCode: time 8.51e-07/1.402, allocations: 0 / 1.148 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4255/1.827, allocations: 92.52 MB / 1.239 GB, free: 334 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/17.03, allocations: 14.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