Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_dev_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.001679/0.001679, allocations: 108 kB / 15.6 MB, free: 128 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.00192/0.00192, allocations: 193 kB / 16.53 MB, free: 6.672 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7091/0.7091, allocations: 93.72 MB / 384.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 88.97 kB / 463.5 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1256, allocations: 68.26 MB / 0.5193 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.196/1.321, allocations: 0.5572 GB / 1.076 GB, free: 8.785 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.4968/1.818, allocations: 48.3 MB / 1.124 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004689/1.823, allocations: 223.9 kB / 1.124 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.009162/1.832, allocations: 3.947 MB / 1.128 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0431/1.875, allocations: 18.85 MB / 1.146 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01619/1.891, allocations: 6.413 MB / 1.152 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01449/1.906, allocations: 9.23 MB / 1.161 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004372/1.91, allocations: 2.736 MB / 1.164 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009945/1.92, allocations: 4.56 MB / 1.169 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00775/1.928, allocations: 3.846 MB / 1.172 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.002542/1.931, allocations: 0.6012 MB / 1.173 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07631/2.007, allocations: 36 MB / 1.208 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004491/2.012, allocations: 1.93 MB / 1.21 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.007497/2.019, allocations: 3.347 MB / 1.213 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.05779/2.077, allocations: 22.66 MB / 1.235 GB, free: 3.676 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/2.077, allocations: 0 / 1.235 GB, free: 3.676 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.988e-06/2.077, allocations: 0 / 1.235 GB, free: 3.676 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0002132/2.077, allocations: 7.938 kB / 1.235 GB, free: 3.668 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.02691/2.104, allocations: 10 MB / 1.245 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/2.104, allocations: 8.031 kB / 1.245 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009942/2.105, allocations: 0.6025 MB / 1.246 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/2.107, allocations: 0.663 MB / 1.246 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007141/2.114, allocations: 4.056 MB / 1.25 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002354/2.114, allocations: 327.3 kB / 1.251 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008642/2.115, allocations: 445.3 kB / 1.251 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/2.128, allocations: 7.33 MB / 1.258 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.556e-05/2.128, allocations: 1.312 kB / 1.258 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004819/2.128, allocations: 180.5 kB / 1.258 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005613/2.129, allocations: 412.8 kB / 1.259 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/2.143, allocations: 8.302 MB / 1.267 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04898/2.192, allocations: 31.11 MB / 1.297 GB, free: 6.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007974/2.2, allocations: 4.35 MB / 1.301 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00612/2.206, allocations: 3.532 MB / 1.305 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007889/2.214, allocations: 8.104 MB / 1.313 GB, free: 5.234 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001069/2.215, allocations: 96.92 kB / 1.313 GB, free: 5.133 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.127e-05/2.215, allocations: 0 / 1.313 GB, free: 5.133 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.0443/2.259, allocations: 20.43 MB / 1.333 GB, free: 436 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/2.259, allocations: 127.8 kB / 1.333 GB, free: 292 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005415/2.264, allocations: 3.248 MB / 1.336 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0009827/2.265, allocations: 106.5 kB / 1.336 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.00195/2.267, allocations: 2.072 MB / 1.338 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.002361/2.27, allocations: 1.593 MB / 1.34 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/2.271, allocations: 0.7534 MB / 1.341 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001327/2.272, allocations: 301.1 kB / 1.341 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004603/2.276, allocations: 2.549 MB / 1.343 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005465/2.282, allocations: 2.815 MB / 1.346 GB, free: 2.828 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/2.293, allocations: 5.792 MB / 1.352 GB, free: 13.03 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/2.293, allocations: 0 / 1.352 GB, free: 13.03 MB / 0.92 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01598/2.309, allocations: 7.384 MB / 1.359 GB, free: 5.66 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/2.309, allocations: 13.97 kB / 1.359 GB, free: 5.648 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/2.309, allocations: 0 / 1.359 GB, free: 5.648 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00733/2.316, allocations: 1.761 MB / 1.361 GB, free: 3.867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/2.319, allocations: 0.7147 MB / 1.361 GB, free: 3.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/2.336, allocations: 12.2 MB / 1.373 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/2.339, allocations: 113.1 kB / 1.373 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009725/2.34, allocations: 270.3 kB / 1.374 GB, free: 6.258 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.002997/2.343, allocations: 1.276 MB / 1.375 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001458/2.344, allocations: 475.8 kB / 1.375 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/2.367, allocations: 11.05 MB / 1.386 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001498/2.367, allocations: 51.94 kB / 1.386 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/2.367, allocations: 11.94 kB / 1.386 GB, free: 9.574 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.536e-05/2.367, allocations: 27.91 kB / 1.386 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03129/2.398, allocations: 15.32 MB / 1.401 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.189e-05/2.398, allocations: 0 / 1.401 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/2.402, allocations: 0.6945 MB / 1.402 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007355/2.409, allocations: 1.784 MB / 1.404 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008428/2.41, allocations: 180.3 kB / 1.404 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01588/2.426, allocations: 12.23 MB / 1.416 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/2.426, allocations: 3.984 kB / 1.416 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02175/2.448, allocations: 11.79 MB / 1.427 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/2.449, allocations: 499.1 kB / 1.428 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008619/2.45, allocations: 92.77 kB / 1.428 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/2.452, allocations: 109.3 kB / 1.428 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007877/2.452, allocations: 361.4 kB / 1.428 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005913/2.453, allocations: 263.2 kB / 1.429 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003597/2.457, allocations: 2.319 MB / 1.431 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.263e-06/2.457, allocations: 0 / 1.431 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.009906/2.467, allocations: 3.528 MB / 1.434 GB, free: 8.082 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.03314/2.5, allocations: 16.47 MB / 1.45 GB, free: 7.953 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02534/2.525, allocations: 9.692 MB / 1.46 GB, free: 14.32 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/2.525, allocations: 0 / 1.46 GB, free: 14.32 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.008332/2.534, allocations: 4.202 MB / 1.464 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007524/2.541, allocations: 1.634 MB / 1.466 GB, free: 8.633 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3431/2.884, allocations: 56.6 MB / 1.521 GB, free: 0.563 GB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002586/2.887, allocations: 3.325 MB / 1.524 GB, free: 0.5619 GB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.006069/2.893, allocations: 2.893 MB / 1.527 GB, free: 0.5618 GB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003729/2.897, allocations: 2.537 MB / 1.529 GB, free: 0.5599 GB / 1.029 GB Notification: Performance of SimCode: time 7.41e-07/2.897, allocations: 0 / 1.529 GB, free: 0.5599 GB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2542/3.151, allocations: 200.4 MB / 1.725 GB, free: 396.3 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.14/25.29, allocations: 7.281 kB / 1.725 GB, free: 396.3 MB / 1.029 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches