Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.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.TestDynamicTopology,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology",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.001541/0.001541, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6474/0.6474, allocations: 91.19 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 73.39 kB / 460.4 MB, free: 23.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1253, allocations: 67.7 MB / 0.5157 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.178/1.303, allocations: 0.5571 GB / 1.073 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.5597/1.863, allocations: 48.26 MB / 1.12 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00567/1.869, allocations: 213.9 kB / 1.12 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01077/1.88, allocations: 3.941 MB / 1.124 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.05531/1.935, allocations: 18.8 MB / 1.142 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01681/1.952, allocations: 6.412 MB / 1.149 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01601/1.968, allocations: 9.132 MB / 1.158 GB, free: 0 / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004876/1.973, allocations: 2.725 MB / 1.16 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01193/1.985, allocations: 4.524 MB / 1.165 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007438/1.992, allocations: 3.837 MB / 1.168 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001951/1.994, allocations: 0.6071 MB / 1.169 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07548/2.07, allocations: 35.99 MB / 1.204 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00388/2.074, allocations: 1.932 MB / 1.206 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.006879/2.081, allocations: 3.331 MB / 1.209 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.06368/2.144, allocations: 22.65 MB / 1.231 GB, free: 5.988 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/2.144, allocations: 4 kB / 1.231 GB, free: 5.984 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.054e-06/2.144, allocations: 0 / 1.231 GB, free: 5.984 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0002419/2.145, allocations: 3.984 kB / 1.231 GB, free: 5.98 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1158 * Number of variables: 1158 Notification: Performance of Generate backend data structure: time 0.02562/2.17, allocations: 9.97 MB / 1.241 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/2.17, allocations: 8.031 kB / 1.241 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/2.171, allocations: 0.6052 MB / 1.242 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/2.173, allocations: 0.6484 MB / 1.242 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007567/2.181, allocations: 4.023 MB / 1.246 GB, free: 9.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/2.181, allocations: 325.4 kB / 1.247 GB, free: 9.184 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/2.182, allocations: 444.8 kB / 1.247 GB, free: 8.895 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/2.197, allocations: 7.333 MB / 1.254 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/2.197, allocations: 0 / 1.254 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006687/2.197, allocations: 177.5 kB / 1.254 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005588/2.198, allocations: 415.8 kB / 1.255 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/2.213, allocations: 8.3 MB / 1.263 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04933/2.263, allocations: 31.1 MB / 1.293 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008272/2.271, allocations: 4.34 MB / 1.297 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005995/2.277, allocations: 3.532 MB / 1.301 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006968/2.284, allocations: 8.118 MB / 1.309 GB, free: 8.934 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001083/2.284, allocations: 86.5 kB / 1.309 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.632e-05/2.284, allocations: 0 / 1.309 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.04786/2.332, allocations: 20.41 MB / 1.329 GB, free: 4.152 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/2.332, allocations: 129.1 kB / 1.329 GB, free: 4.008 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/2.337, allocations: 3.21 MB / 1.332 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.001138/2.338, allocations: 106.9 kB / 1.332 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001685/2.34, allocations: 2.057 MB / 1.334 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.001968/2.342, allocations: 1.606 MB / 1.336 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/2.343, allocations: 0.7427 MB / 1.337 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.447e-05/2.343, allocations: 301.1 kB / 1.337 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/2.347, allocations: 2.561 MB / 1.339 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004374/2.351, allocations: 2.811 MB / 1.342 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008964/2.36, allocations: 5.795 MB / 1.348 GB, free: 0.8516 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-06/2.36, allocations: 3.938 kB / 1.348 GB, free: 0.8477 MB / 0.9044 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01266/2.373, allocations: 7.376 MB / 1.355 GB, free: 9.488 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/2.373, allocations: 12 kB / 1.355 GB, free: 9.477 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/2.373, allocations: 0 / 1.355 GB, free: 9.477 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006817/2.38, allocations: 1.756 MB / 1.357 GB, free: 7.699 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003102/2.383, allocations: 0.7063 MB / 1.357 GB, free: 7.027 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/2.397, allocations: 12.22 MB / 1.369 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00305/2.4, allocations: 104.9 kB / 1.369 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008228/2.401, allocations: 270 kB / 1.37 GB, free: 10.09 MB / 0.9356 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 (404): * Single equations (assignments): 367 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,26,68.0%), (5,26,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,5), (2,4), (1,5), (1,5), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002645/2.404, allocations: 1.282 MB / 1.371 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/2.405, allocations: 466.1 kB / 1.371 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01929/2.424, allocations: 11.05 MB / 1.382 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001292/2.425, allocations: 52 kB / 1.382 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.674e-05/2.425, allocations: 8 kB / 1.382 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.638e-05/2.425, allocations: 23.91 kB / 1.382 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0283/2.453, allocations: 15.32 MB / 1.397 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/2.453, allocations: 0 / 1.397 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002845/2.456, allocations: 0.6842 MB / 1.398 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006994/2.463, allocations: 1.789 MB / 1.4 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001338/2.464, allocations: 181.4 kB / 1.4 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01574/2.48, allocations: 12.23 MB / 1.412 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/2.48, allocations: 4 kB / 1.412 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02064/2.501, allocations: 11.79 MB / 1.423 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/2.502, allocations: 0.4913 MB / 1.424 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/2.503, allocations: 97.33 kB / 1.424 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/2.506, allocations: 113 kB / 1.424 GB, free: 2.402 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007814/2.506, allocations: 367.8 kB / 1.424 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006035/2.507, allocations: 257.3 kB / 1.424 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.003401/2.51, allocations: 2.286 MB / 1.427 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/2.51, allocations: 0 / 1.427 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01044/2.521, allocations: 3.515 MB / 1.43 GB, free: 12 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (dynamicJunctionNM1.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow3.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow5.inlet.m_flow,dynamicJunctionNM.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow1.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow,dynamicPressureOutflow2.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 (400): * Single equations (assignments): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,26,68.0%), (5,26,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,4), (2,4), (1,5), (2,4), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03107/2.552, allocations: 16.48 MB / 1.446 GB, free: 11.87 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02351/2.575, allocations: 9.692 MB / 1.456 GB, free: 2.238 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/2.575, allocations: 0 / 1.456 GB, free: 2.238 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.008031/2.584, allocations: 4.212 MB / 1.46 GB, free: 14.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008753/2.592, allocations: 1.632 MB / 1.461 GB, free: 12.54 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3676/2.96, allocations: 56.24 MB / 1.516 GB, free: 0.5927 GB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002596/2.963, allocations: 3.315 MB / 1.52 GB, free: 0.5917 GB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.005658/2.968, allocations: 2.895 MB / 1.522 GB, free: 0.5916 GB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0033/2.972, allocations: 2.519 MB / 1.525 GB, free: 0.5897 GB / 1.045 GB Notification: Performance of SimCode: time 7.42e-07/2.972, allocations: 0 / 1.525 GB, free: 0.5897 GB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2507/3.222, allocations: 200 MB / 1.72 GB, free: 433.9 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.57/24.8, allocations: 5.109 kB / 1.72 GB, free: 433.9 MB / 1.045 GB (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology_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_TestDynamicTopology.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestDynamicTopology_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches