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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 212 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6533/0.6533, allocations: 100.3 MB / 409.8 MB, free: 5.383 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002422/0.002422, allocations: 87.88 kB / 0.5589 GB, free: 13.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.362, allocations: 74.41 MB / 0.6316 GB, free: 2.426 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.588/1.95, allocations: 0.5598 GB / 1.191 GB, free: 420 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.05839/2.008, allocations: 48.52 MB / 1.239 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004955/2.013, allocations: 311.9 kB / 1.239 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.009244/2.022, allocations: 4.128 MB / 1.243 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.04684/2.069, allocations: 19.04 MB / 1.262 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01699/2.086, allocations: 6.443 MB / 1.268 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01375/2.1, allocations: 9.299 MB / 1.277 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003083/2.103, allocations: 1.8 MB / 1.279 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01/2.113, allocations: 4.899 MB / 1.284 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007372/2.12, allocations: 4.004 MB / 1.287 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002287/2.123, allocations: 0.6025 MB / 1.288 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07407/2.197, allocations: 37.5 MB / 1.325 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003934/2.201, allocations: 1.957 MB / 1.327 GB, free: 6.047 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.009276/2.21, allocations: 3.345 MB / 1.33 GB, free: 3.43 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.06763/2.278, allocations: 23.03 MB / 1.352 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/2.278, allocations: 0 / 1.352 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.735e-06/2.278, allocations: 4 kB / 1.352 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003628/2.278, allocations: 0 / 1.352 GB, free: 13.98 MB / 0.9044 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.03028/2.308, allocations: 10.37 MB / 1.363 GB, free: 3.691 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/2.308, allocations: 8.031 kB / 1.363 GB, free: 3.684 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001446/2.308, allocations: 120.7 kB / 1.363 GB, free: 3.562 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001767/2.31, allocations: 0.6077 MB / 1.363 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002347/2.313, allocations: 0.6832 MB / 1.364 GB, free: 2.27 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009567/2.322, allocations: 4.458 MB / 1.368 GB, free: 13.98 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002962/2.322, allocations: 331.2 kB / 1.369 GB, free: 13.67 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/2.324, allocations: 445 kB / 1.369 GB, free: 13.25 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/2.341, allocations: 7.33 MB / 1.376 GB, free: 5.867 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.543e-05/2.341, allocations: 0 / 1.376 GB, free: 5.867 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008059/2.342, allocations: 179.7 kB / 1.376 GB, free: 5.703 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005996/2.343, allocations: 412.8 kB / 1.377 GB, free: 5.293 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01435/2.357, allocations: 8.305 MB / 1.385 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04869/2.406, allocations: 30.97 MB / 1.415 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007592/2.413, allocations: 3.98 MB / 1.419 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005325/2.419, allocations: 3.164 MB / 1.422 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007359/2.426, allocations: 8.111 MB / 1.43 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/2.426, allocations: 82.56 kB / 1.43 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=476): time 1.332e-05/2.426, allocations: 0 / 1.43 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of matching and sorting (n=480): time 0.04531/2.471, allocations: 20.53 MB / 1.45 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/2.471, allocations: 133 kB / 1.45 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/2.476, allocations: 3.244 MB / 1.453 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.00105/2.477, allocations: 106.6 kB / 1.453 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0018/2.479, allocations: 2.091 MB / 1.456 GB, free: 208 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002566/2.482, allocations: 1.675 MB / 1.457 GB, free: 14.55 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001677/2.483, allocations: 0.75 MB / 1.458 GB, free: 13.81 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000124/2.484, allocations: 309.1 kB / 1.458 GB, free: 13.51 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/2.488, allocations: 2.549 MB / 1.461 GB, free: 10.96 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005389/2.493, allocations: 2.819 MB / 1.463 GB, free: 8.137 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/2.504, allocations: 5.785 MB / 1.469 GB, free: 2.344 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/2.504, allocations: 3.938 kB / 1.469 GB, free: 2.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.0179/2.522, allocations: 7.381 MB / 1.476 GB, free: 10.94 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/2.522, allocations: 4 kB / 1.476 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/2.522, allocations: 0 / 1.476 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007523/2.53, allocations: 1.755 MB / 1.478 GB, free: 9.156 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003525/2.533, allocations: 0.71 MB / 1.479 GB, free: 8.445 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0164/2.549, allocations: 12.2 MB / 1.491 GB, free: 11.86 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/2.553, allocations: 110.4 kB / 1.491 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/2.554, allocations: 263.9 kB / 1.491 GB, free: 11.5 MB / 1.045 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.00382/2.558, allocations: 1.275 MB / 1.492 GB, free: 10.22 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002102/2.56, allocations: 0.489 MB / 1.493 GB, free: 9.73 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02315/2.583, allocations: 11 MB / 1.503 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002095/2.583, allocations: 48 kB / 1.503 GB, free: 14.77 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.238e-05/2.583, allocations: 20 kB / 1.503 GB, free: 14.75 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000138/2.583, allocations: 23.91 kB / 1.504 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/2.618, allocations: 15.23 MB / 1.518 GB, free: 15.48 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.192e-05/2.618, allocations: 4 kB / 1.518 GB, free: 15.47 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/2.621, allocations: 0.6866 MB / 1.519 GB, free: 14.79 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007477/2.629, allocations: 1.785 MB / 1.521 GB, free: 12.98 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001101/2.63, allocations: 181.3 kB / 1.521 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/2.645, allocations: 12.23 MB / 1.533 GB, free: 184 kB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/2.645, allocations: 3.938 kB / 1.533 GB, free: 180 kB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02156/2.667, allocations: 11.78 MB / 1.544 GB, free: 4.336 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/2.668, allocations: 0.5173 MB / 1.545 GB, free: 3.797 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/2.67, allocations: 90.48 kB / 1.545 GB, free: 3.715 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/2.673, allocations: 111.4 kB / 1.545 GB, free: 3.609 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009061/2.674, allocations: 362.3 kB / 1.545 GB, free: 3.258 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00061/2.674, allocations: 262.5 kB / 1.546 GB, free: 3.004 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.003566/2.678, allocations: 2.311 MB / 1.548 GB, free: 0.6875 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.1e-07/2.678, allocations: 3.938 kB / 1.548 GB, free: 0.6836 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.01121/2.689, allocations: 3.576 MB / 1.551 GB, free: 13.11 MB / 1.107 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.3491/3.038, allocations: 16.49 MB / 1.568 GB, free: 0.6004 GB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.01167/3.05, allocations: 6.772 MB / 1.574 GB, free: 0.5997 GB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/3.05, allocations: 0 / 1.574 GB, free: 0.5997 GB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.006491/3.056, allocations: 3.904 MB / 1.578 GB, free: 0.5982 GB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007128/3.063, allocations: 1.64 MB / 1.58 GB, free: 0.5977 GB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06749/3.131, allocations: 45.53 MB / 1.624 GB, free: 0.5777 GB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/3.133, allocations: 3.328 MB / 1.627 GB, free: 0.5745 GB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.00491/3.138, allocations: 2.897 MB / 1.63 GB, free: 0.5719 GB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003179/3.141, allocations: 2.534 MB / 1.633 GB, free: 0.5695 GB / 1.107 GB Notification: Performance of SimCode: time 1.163e-06/3.141, allocations: 3.938 kB / 1.633 GB, free: 0.5695 GB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2385/3.38, allocations: 201.2 MB / 1.829 GB, free: 382.7 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.25/30.63, allocations: 4.062 kB / 1.829 GB, free: 382.7 MB / 1.107 GB " [Timeout remaining time 629] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 36.42624299303861]