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.008106/0.008106, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001171/0.001171, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6856/0.6856, allocations: 91.22 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 83.88 kB / 0.5164 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1246, allocations: 67.69 MB / 0.5825 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.255/1.38, allocations: 0.5571 GB / 1.14 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.5864/1.966, allocations: 48.25 MB / 1.187 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006463/1.973, allocations: 217.1 kB / 1.187 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.01049/1.983, allocations: 4.108 MB / 1.191 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.05773/2.041, allocations: 19.05 MB / 1.21 GB, free: 20 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01959/2.061, allocations: 6.449 MB / 1.216 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01744/2.078, allocations: 9.145 MB / 1.225 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004561/2.083, allocations: 2.727 MB / 1.227 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01076/2.093, allocations: 4.637 MB / 1.232 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007858/2.101, allocations: 3.838 MB / 1.236 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001812/2.103, allocations: 0.5993 MB / 1.236 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06796/2.171, allocations: 36.09 MB / 1.272 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003359/2.175, allocations: 1.929 MB / 1.273 GB, free: 3.129 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.007108/2.182, allocations: 3.339 MB / 1.277 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.06194/2.244, allocations: 22.97 MB / 1.299 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/2.244, allocations: 6.812 kB / 1.299 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.304e-06/2.244, allocations: 0 / 1.299 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002731/2.244, allocations: 0 / 1.299 GB, free: 15.19 MB / 0.8731 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.02956/2.274, allocations: 10.32 MB / 1.309 GB, free: 6 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/2.274, allocations: 16.02 kB / 1.309 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001422/2.275, allocations: 0.6023 MB / 1.31 GB, free: 5.652 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/2.277, allocations: 0.6852 MB / 1.311 GB, free: 4.965 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/2.288, allocations: 4.414 MB / 1.315 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/2.289, allocations: 329.8 kB / 1.315 GB, free: 1.48 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001286/2.29, allocations: 452.1 kB / 1.316 GB, free: 1.051 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/2.307, allocations: 7.328 MB / 1.323 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001604/2.307, allocations: 6.812 kB / 1.323 GB, free: 9.672 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001276/2.308, allocations: 171.1 kB / 1.323 GB, free: 9.516 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000588/2.309, allocations: 416.8 kB / 1.323 GB, free: 9.102 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/2.325, allocations: 8.308 MB / 1.331 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05492/2.38, allocations: 30.95 MB / 1.362 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008334/2.389, allocations: 4.335 MB / 1.366 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006121/2.395, allocations: 3.531 MB / 1.369 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007204/2.402, allocations: 8.106 MB / 1.377 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/2.402, allocations: 89.36 kB / 1.377 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.861e-05/2.402, allocations: 4 kB / 1.377 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.05169/2.454, allocations: 20.56 MB / 1.397 GB, free: 9.051 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/2.454, allocations: 133.1 kB / 1.398 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007021/2.461, allocations: 3.21 MB / 1.401 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.001156/2.462, allocations: 102.5 kB / 1.401 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001995/2.464, allocations: 2.071 MB / 1.403 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002391/2.467, allocations: 1.68 MB / 1.404 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002609/2.469, allocations: 0.7475 MB / 1.405 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/2.47, allocations: 301.1 kB / 1.405 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004358/2.474, allocations: 2.552 MB / 1.408 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005143/2.479, allocations: 2.822 MB / 1.411 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/2.49, allocations: 5.789 MB / 1.416 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.799e-05/2.49, allocations: 0 / 1.416 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.02048/2.51, allocations: 7.407 MB / 1.424 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/2.51, allocations: 11.94 kB / 1.424 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/2.51, allocations: 0 / 1.424 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007347/2.518, allocations: 1.747 MB / 1.425 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003653/2.521, allocations: 0.7036 MB / 1.426 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01548/2.537, allocations: 12.21 MB / 1.438 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004249/2.541, allocations: 113.6 kB / 1.438 GB, free: 15.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/2.543, allocations: 270 kB / 1.438 GB, free: 14.86 MB / 1.014 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.004481/2.547, allocations: 1.276 MB / 1.44 GB, free: 13.61 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002093/2.549, allocations: 488.8 kB / 1.44 GB, free: 13.13 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02413/2.573, allocations: 11.03 MB / 1.451 GB, free: 2.238 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002125/2.574, allocations: 51.94 kB / 1.451 GB, free: 2.188 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.294e-05/2.574, allocations: 15.94 kB / 1.451 GB, free: 2.172 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/2.574, allocations: 23.91 kB / 1.451 GB, free: 2.148 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03335/2.607, allocations: 15.27 MB / 1.466 GB, free: 2.938 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-05/2.607, allocations: 0 / 1.466 GB, free: 2.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003156/2.61, allocations: 0.6849 MB / 1.466 GB, free: 2.285 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00729/2.618, allocations: 1.795 MB / 1.468 GB, free: 484 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001168/2.619, allocations: 172 kB / 1.468 GB, free: 316 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/2.634, allocations: 12.23 MB / 1.48 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/2.634, allocations: 0 / 1.48 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/2.66, allocations: 11.82 MB / 1.492 GB, free: 7.891 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/2.662, allocations: 0.5135 MB / 1.492 GB, free: 7.355 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002191/2.664, allocations: 88.77 kB / 1.492 GB, free: 7.273 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/2.667, allocations: 112.9 kB / 1.493 GB, free: 7.168 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/2.669, allocations: 369 kB / 1.493 GB, free: 6.812 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0013/2.67, allocations: 265.4 kB / 1.493 GB, free: 6.555 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.004323/2.674, allocations: 2.29 MB / 1.495 GB, free: 4.258 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.1e-07/2.674, allocations: 0 / 1.495 GB, free: 4.258 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.01116/2.686, allocations: 3.563 MB / 1.499 GB, free: 0.6953 MB / 1.061 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.03637/2.722, allocations: 16.55 MB / 1.515 GB, free: 0.5 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01507/2.737, allocations: 7.125 MB / 1.522 GB, free: 9.402 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/2.737, allocations: 0 / 1.522 GB, free: 9.402 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.009059/2.746, allocations: 4.216 MB / 1.526 GB, free: 5.25 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01071/2.757, allocations: 1.636 MB / 1.528 GB, free: 3.688 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3929/3.15, allocations: 45.44 MB / 1.572 GB, free: 0.5985 GB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003983/3.154, allocations: 3.313 MB / 1.575 GB, free: 0.5974 GB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.00804/3.162, allocations: 2.887 MB / 1.578 GB, free: 0.5973 GB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004162/3.166, allocations: 2.523 MB / 1.581 GB, free: 0.5954 GB / 1.107 GB Notification: Performance of SimCode: time 4.31e-07/3.166, allocations: 0 / 1.581 GB, free: 0.5954 GB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2554/3.422, allocations: 199.6 MB / 1.775 GB, free: 445 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.19/30.61, allocations: 15.12 kB / 1.776 GB, free: 445 MB / 1.107 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