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: translateModel(ThermofluidStream.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001646/0.001646, allocations: 195.8 kB / 16.14 MB, free: 6.645 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.342/1.342, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6459/0.6459, allocations: 91.19 MB / 381.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 80.25 kB / 459.6 MB, free: 23.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.117, allocations: 67.7 MB / 0.515 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.176/1.293, allocations: 0.5674 GB / 1.082 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.5545/1.847, allocations: 49.64 MB / 1.131 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006026/1.853, allocations: 245.5 kB / 1.131 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01031/1.864, allocations: 3.658 MB / 1.135 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.04726/1.911, allocations: 16.53 MB / 1.151 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01638/1.927, allocations: 5.783 MB / 1.156 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01609/1.944, allocations: 13.17 MB / 1.169 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005142/1.949, allocations: 2.444 MB / 1.172 GB, free: 16.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01263/1.961, allocations: 4.038 MB / 1.176 GB, free: 16.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008591/1.97, allocations: 3.884 MB / 1.179 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.002687/1.973, allocations: 352.8 kB / 1.18 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07804/2.051, allocations: 40.32 MB / 1.219 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004031/2.055, allocations: 1.674 MB / 1.221 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.007932/2.063, allocations: 3.073 MB / 1.224 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.06652/2.129, allocations: 23.65 MB / 1.247 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/2.129, allocations: 0 / 1.247 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.984e-06/2.129, allocations: 0 / 1.247 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.000376/2.13, allocations: 0 / 1.247 GB, free: 0.8359 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.0349/2.165, allocations: 9.975 MB / 1.257 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/2.165, allocations: 8.031 kB / 1.257 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00331/2.168, allocations: 0.6511 MB / 1.257 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/2.182, allocations: 4.021 MB / 1.261 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000486/2.183, allocations: 325.1 kB / 1.261 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002526/2.186, allocations: 447.8 kB / 1.262 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02045/2.206, allocations: 7.336 MB / 1.269 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001636/2.206, allocations: 0 / 1.269 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001157/2.207, allocations: 176.5 kB / 1.269 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000588/2.208, allocations: 413.2 kB / 1.27 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01624/2.224, allocations: 8.309 MB / 1.278 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05353/2.278, allocations: 30.95 MB / 1.308 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008679/2.287, allocations: 4.343 MB / 1.312 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00606/2.293, allocations: 3.528 MB / 1.316 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007093/2.3, allocations: 8.105 MB / 1.324 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/2.3, allocations: 95.84 kB / 1.324 GB, free: 5.387 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.527e-05/2.3, allocations: 0 / 1.324 GB, free: 5.387 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.05199/2.352, allocations: 20.41 MB / 1.344 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/2.352, allocations: 133 kB / 1.344 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00644/2.358, allocations: 3.211 MB / 1.347 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.001326/2.36, allocations: 104.3 kB / 1.347 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001903/2.362, allocations: 2.048 MB / 1.349 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.002467/2.364, allocations: 1.596 MB / 1.351 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003209/2.367, allocations: 0.7484 MB / 1.351 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000114/2.368, allocations: 301.1 kB / 1.352 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005239/2.373, allocations: 2.549 MB / 1.354 GB, free: 5.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005825/2.379, allocations: 2.82 MB / 1.357 GB, free: 3.16 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/2.391, allocations: 5.795 MB / 1.362 GB, free: 13.36 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.51e-05/2.391, allocations: 0 / 1.362 GB, free: 13.36 MB / 0.92 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01987/2.411, allocations: 7.388 MB / 1.37 GB, free: 5.98 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/2.411, allocations: 4 kB / 1.37 GB, free: 5.977 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/2.411, allocations: 4 kB / 1.37 GB, free: 5.973 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007799/2.419, allocations: 1.75 MB / 1.371 GB, free: 4.203 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004045/2.423, allocations: 0.7112 MB / 1.372 GB, free: 3.527 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/2.438, allocations: 11.49 MB / 1.383 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/2.442, allocations: 324.4 kB / 1.384 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001636/2.444, allocations: 274.2 kB / 1.384 GB, free: 7.102 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.004096/2.448, allocations: 1.277 MB / 1.385 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00214/2.45, allocations: 462.2 kB / 1.386 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02503/2.475, allocations: 11.05 MB / 1.396 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001932/2.476, allocations: 48 kB / 1.396 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.831e-05/2.476, allocations: 8 kB / 1.396 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001238/2.476, allocations: 23.91 kB / 1.396 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03775/2.513, allocations: 15.31 MB / 1.411 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.997e-05/2.514, allocations: 8.125 kB / 1.411 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003561/2.517, allocations: 0.6866 MB / 1.412 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007776/2.525, allocations: 1.786 MB / 1.414 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001077/2.526, allocations: 174 kB / 1.414 GB, free: 8.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/2.541, allocations: 11.54 MB / 1.425 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/2.541, allocations: 0 / 1.425 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02447/2.565, allocations: 11.79 MB / 1.437 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/2.567, allocations: 0.4913 MB / 1.437 GB, free: 340 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/2.569, allocations: 97.14 kB / 1.437 GB, free: 248 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004007/2.573, allocations: 331 kB / 1.438 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/2.574, allocations: 367.6 kB / 1.438 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001154/2.575, allocations: 252.4 kB / 1.438 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004605/2.58, allocations: 2.29 MB / 1.44 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/2.58, allocations: 96 / 1.44 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01311/2.593, allocations: 3.519 MB / 1.444 GB, free: 9.512 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.01167/2.605, allocations: 4.003 MB / 1.448 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01399/2.619, allocations: 7.097 MB / 1.455 GB, free: 14.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/2.619, allocations: 4 kB / 1.455 GB, free: 14.79 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.007709/2.627, allocations: 4.209 MB / 1.459 GB, free: 10.65 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007356/2.634, allocations: 1.517 MB / 1.46 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/2.657, allocations: 13.55 MB / 1.474 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003234/2.66, allocations: 3.32 MB / 1.477 GB, free: 8.266 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.00781/2.668, allocations: 2.898 MB / 1.48 GB, free: 5.562 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001809/2.67, allocations: 0.4992 MB / 1.48 GB, free: 5.062 MB / 1.029 GB Notification: Performance of SimCode: time 2.204e-06/2.67, allocations: 4 kB / 1.48 GB, free: 5.059 MB / 1.029 GB Notification: Performance of Templates: time 0.4778/3.148, allocations: 146.6 MB / 1.623 GB, free: 0.4997 GB / 1.029 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile (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) 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) Reference file matches