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.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.001864/0.001864, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002381/0.002381, allocations: 213.1 kB / 22.25 MB, free: 4.855 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.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7435/0.7435, allocations: 94.63 MB / 407 MB, free: 8.918 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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: translateModel(ThermofluidStream.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology") translateModel(ThermofluidStream.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology") [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.002581/0.002581, allocations: 86.81 kB / 0.5554 GB, free: 38.24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1094, allocations: 73.05 MB / 0.6268 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.388/1.497, allocations: 0.4944 GB / 1.121 GB, free: 320 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.05507/1.552, allocations: 43.95 MB / 1.164 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005218/1.558, allocations: 308.6 kB / 1.164 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009464/1.567, allocations: 3.455 MB / 1.168 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.04988/1.617, allocations: 18.89 MB / 1.186 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.018/1.635, allocations: 6.595 MB / 1.193 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0122/1.647, allocations: 9.278 MB / 1.202 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002916/1.65, allocations: 1.343 MB / 1.203 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01062/1.661, allocations: 4.82 MB / 1.208 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007771/1.668, allocations: 3.827 MB / 1.211 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002332/1.671, allocations: 0.6011 MB / 1.212 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06178/1.733, allocations: 29.56 MB / 1.241 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.003873/1.736, allocations: 1.957 MB / 1.243 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.006845/1.743, allocations: 2.689 MB / 1.245 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.05738/1.801, allocations: 22.07 MB / 1.267 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/1.801, allocations: 7.984 kB / 1.267 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.993e-06/1.801, allocations: 0 / 1.267 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002817/1.801, allocations: 0 / 1.267 GB, free: 10.98 MB / 0.8575 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.02755/1.828, allocations: 10.25 MB / 1.277 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/1.829, allocations: 15.97 kB / 1.277 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002939/1.831, allocations: 0.7513 MB / 1.278 GB, free: 24 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/1.842, allocations: 4.314 MB / 1.282 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003155/1.842, allocations: 328.8 kB / 1.282 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001317/1.844, allocations: 451 kB / 1.283 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01519/1.859, allocations: 7.422 MB / 1.29 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-05/1.859, allocations: 4 kB / 1.29 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000509/1.859, allocations: 176.4 kB / 1.29 GB, free: 3.371 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005676/1.86, allocations: 414.7 kB / 1.291 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/1.875, allocations: 8.418 MB / 1.299 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04267/1.918, allocations: 18.68 MB / 1.317 GB, free: 7.961 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007863/1.925, allocations: 3.952 MB / 1.321 GB, free: 3.996 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005695/1.931, allocations: 3.157 MB / 1.324 GB, free: 0.8359 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003693/1.935, allocations: 1.076 MB / 1.325 GB, free: 15.77 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.768e-05/1.935, allocations: 86.55 kB / 1.325 GB, free: 15.67 MB / 0.92 GB Notification: Performance of pre-optimization done (n=476): time 1.199e-05/1.935, allocations: 0 / 1.325 GB, free: 15.67 MB / 0.92 GB Notification: Performance of matching and sorting (n=480): time 0.04585/1.981, allocations: 19.36 MB / 1.344 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.981, allocations: 133 kB / 1.344 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004746/1.986, allocations: 2.936 MB / 1.347 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0009555/1.987, allocations: 102.2 kB / 1.347 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001876/1.988, allocations: 2.123 MB / 1.349 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.002184/1.991, allocations: 1.677 MB / 1.351 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/1.992, allocations: 0.7471 MB / 1.352 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001303/1.992, allocations: 301.1 kB / 1.352 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/1.997, allocations: 2.549 MB / 1.354 GB, free: 1.738 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00535/2.002, allocations: 2.812 MB / 1.357 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/2.014, allocations: 5.789 MB / 1.363 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/2.014, allocations: 4 kB / 1.363 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01923/2.033, allocations: 7.333 MB / 1.37 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/2.033, allocations: 8 kB / 1.37 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/2.034, allocations: 4 kB / 1.37 GB, free: 1.758 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007646/2.041, allocations: 1.738 MB / 1.372 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003541/2.045, allocations: 0.7099 MB / 1.372 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01776/2.062, allocations: 11.78 MB / 1.384 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00318/2.066, allocations: 118 kB / 1.384 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001304/2.067, allocations: 261.8 kB / 1.384 GB, free: 2.824 MB / 0.9669 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.003923/2.071, allocations: 1.263 MB / 1.385 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001774/2.073, allocations: 473 kB / 1.386 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02594/2.099, allocations: 10.97 MB / 1.397 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001903/2.099, allocations: 52 kB / 1.397 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-05/2.099, allocations: 8 kB / 1.397 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001087/2.099, allocations: 19.92 kB / 1.397 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03643/2.135, allocations: 13.62 MB / 1.41 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.396e-05/2.135, allocations: 7.938 kB / 1.41 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/2.139, allocations: 0.6671 MB / 1.411 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007737/2.147, allocations: 1.778 MB / 1.412 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001123/2.148, allocations: 172.2 kB / 1.412 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/2.165, allocations: 11.82 MB / 1.424 GB, free: 9.758 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/2.165, allocations: 4 kB / 1.424 GB, free: 9.754 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02654/2.192, allocations: 11.66 MB / 1.435 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/2.193, allocations: 416.8 kB / 1.436 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001636/2.195, allocations: 91.59 kB / 1.436 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003133/2.198, allocations: 108.3 kB / 1.436 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001435/2.199, allocations: 378.6 kB / 1.436 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001033/2.2, allocations: 249.4 kB / 1.437 GB, free: 12.83 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.004092/2.205, allocations: 2.076 MB / 1.439 GB, free: 10.74 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.6e-07/2.205, allocations: 0 / 1.439 GB, free: 10.74 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0135/2.218, allocations: 3.493 MB / 1.442 GB, free: 7.25 MB / 1.029 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 (390): * Single equations (assignments): 353 * 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.01579/2.234, allocations: 3.968 MB / 1.446 GB, free: 3.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.3103/2.544, allocations: 6.745 MB / 1.453 GB, free: 0.5282 GB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.544, allocations: 1.094 kB / 1.453 GB, free: 0.5282 GB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.007063/2.551, allocations: 3.882 MB / 1.456 GB, free: 0.5278 GB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00675/2.558, allocations: 1.512 MB / 1.458 GB, free: 0.5277 GB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02012/2.578, allocations: 11.52 MB / 1.469 GB, free: 0.5229 GB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/2.581, allocations: 2.81 MB / 1.472 GB, free: 0.5223 GB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.005969/2.587, allocations: 2.852 MB / 1.475 GB, free: 0.5221 GB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/2.588, allocations: 489.6 kB / 1.475 GB, free: 0.5221 GB / 1.029 GB Notification: Performance of SimCode: time 1.011e-06/2.588, allocations: 3.406 kB / 1.475 GB, free: 0.5221 GB / 1.029 GB Notification: Performance of Templates: time 0.1746/2.763, allocations: 152 MB / 1.623 GB, free: 399.9 MB / 1.029 GB " [Timeout remaining time 657] make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestDynamicTopology_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 14.422822015359998]