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.001189/0.001189, allocations: 100.1 kB / 15.88 MB, free: 12 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.001173/0.001173, allocations: 196.8 kB / 16.79 MB, free: 6.828 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.313/1.313, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6406/0.6406, allocations: 89.52 MB / 380.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 75.69 kB / 458.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.112, allocations: 67.31 MB / 0.5132 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.097/1.209, allocations: 0.566 GB / 1.079 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.4645/1.673, allocations: 49.07 MB / 1.127 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004452/1.678, allocations: 51.25 kB / 1.127 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.009688/1.688, allocations: 3.613 MB / 1.131 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.04175/1.729, allocations: 16.26 MB / 1.147 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01404/1.743, allocations: 5.762 MB / 1.152 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01293/1.756, allocations: 12.12 MB / 1.164 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003335/1.76, allocations: 2.307 MB / 1.166 GB, free: 16.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007848/1.768, allocations: 3.602 MB / 1.17 GB, free: 16.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006813/1.774, allocations: 3.698 MB / 1.173 GB, free: 16.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001378/1.776, allocations: 353 kB / 1.174 GB, free: 16.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06864/1.844, allocations: 40.31 MB / 1.213 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003479/1.848, allocations: 1.603 MB / 1.215 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.006922/1.855, allocations: 2.768 MB / 1.217 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.03432/1.889, allocations: 15.39 MB / 1.232 GB, free: 10.32 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/1.889, allocations: 0 / 1.232 GB, free: 10.32 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.643e-06/1.889, allocations: 7.875 kB / 1.232 GB, free: 10.32 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0002494/1.89, allocations: 0 / 1.232 GB, free: 10.32 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: 1130 * Number of variables: 1130 Notification: Performance of Generate backend data structure: time 0.0284/1.918, allocations: 8.986 MB / 1.241 GB, free: 2.273 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/1.918, allocations: 16.03 kB / 1.241 GB, free: 2.258 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001948/1.92, allocations: 0.5298 MB / 1.242 GB, free: 1.723 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004906/1.925, allocations: 2.497 MB / 1.244 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/1.925, allocations: 319.2 kB / 1.244 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008148/1.926, allocations: 438.7 kB / 1.245 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/1.939, allocations: 7.221 MB / 1.252 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-05/1.939, allocations: 10.53 kB / 1.252 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/1.939, allocations: 169.1 kB / 1.252 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005097/1.94, allocations: 412.1 kB / 1.252 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01247/1.952, allocations: 8.218 MB / 1.261 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03787/1.99, allocations: 27.3 MB / 1.287 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007548/1.998, allocations: 4.262 MB / 1.291 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005673/2.004, allocations: 3.53 MB / 1.295 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007382/2.011, allocations: 8.105 MB / 1.303 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.93e-05/2.011, allocations: 86.56 kB / 1.303 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=475): time 1.545e-05/2.011, allocations: 0 / 1.303 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of matching and sorting (n=479): time 0.04127/2.053, allocations: 19.73 MB / 1.322 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/2.053, allocations: 129.1 kB / 1.322 GB, free: 4.281 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003186/2.056, allocations: 2.117 MB / 1.324 GB, free: 2.145 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.001037/2.057, allocations: 103.3 kB / 1.324 GB, free: 2.043 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001138/2.058, allocations: 1.529 MB / 1.326 GB, free: 0.4961 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.002182/2.06, allocations: 1.592 MB / 1.327 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/2.062, allocations: 0.742 MB / 1.328 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.346e-05/2.062, allocations: 301.1 kB / 1.328 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004128/2.066, allocations: 2.557 MB / 1.331 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00494/2.071, allocations: 2.813 MB / 1.334 GB, free: 8.52 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009882/2.081, allocations: 5.789 MB / 1.339 GB, free: 2.727 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/2.081, allocations: 0 / 1.339 GB, free: 2.727 MB / 0.8887 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01446/2.095, allocations: 7.407 MB / 1.347 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/2.095, allocations: 10.19 kB / 1.347 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/2.095, allocations: 4 kB / 1.347 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007038/2.102, allocations: 1.738 MB / 1.348 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003627/2.106, allocations: 0.7102 MB / 1.349 GB, free: 8.891 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/2.121, allocations: 11.51 MB / 1.36 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003916/2.125, allocations: 319.5 kB / 1.36 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/2.126, allocations: 269.8 kB / 1.361 GB, free: 12.45 MB / 0.92 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 {(2,4), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002887/2.129, allocations: 1.122 MB / 1.362 GB, free: 11.36 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/2.13, allocations: 351.6 kB / 1.362 GB, free: 11.01 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02/2.15, allocations: 10.97 MB / 1.373 GB, free: 188 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001416/2.15, allocations: 48 kB / 1.373 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.741e-05/2.15, allocations: 12 kB / 1.373 GB, free: 128 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.131e-05/2.15, allocations: 23.91 kB / 1.373 GB, free: 104 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03005/2.18, allocations: 14.88 MB / 1.388 GB, free: 1.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.665e-05/2.181, allocations: 4 kB / 1.388 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003367/2.184, allocations: 0.686 MB / 1.388 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007363/2.191, allocations: 1.783 MB / 1.39 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001147/2.192, allocations: 181.4 kB / 1.39 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01365/2.206, allocations: 11.53 MB / 1.401 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/2.206, allocations: 0 / 1.401 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02141/2.228, allocations: 11.61 MB / 1.413 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/2.229, allocations: 408.6 kB / 1.413 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/2.23, allocations: 87.2 kB / 1.413 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003178/2.233, allocations: 324.2 kB / 1.413 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009608/2.234, allocations: 368.7 kB / 1.414 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006948/2.235, allocations: 257.6 kB / 1.414 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002482/2.238, allocations: 1.553 MB / 1.416 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/2.238, allocations: 0 / 1.416 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.01215/2.25, allocations: 3.468 MB / 1.419 GB, free: 0.6992 MB / 0.9669 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 {(1,5), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0117/2.262, allocations: 4.008 MB / 1.423 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01419/2.276, allocations: 7.122 MB / 1.43 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/2.276, allocations: 0 / 1.43 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.008705/2.285, allocations: 4.159 MB / 1.434 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008071/2.293, allocations: 1.43 MB / 1.435 GB, free: 484 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/2.313, allocations: 12.14 MB / 1.447 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003083/2.316, allocations: 2.917 MB / 1.45 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002639/2.319, allocations: 0.5031 MB / 1.45 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of SimCode: time 2.775e-06/2.319, allocations: 0 / 1.45 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of Templates: time 0.4491/2.768, allocations: 263.8 MB / 1.708 GB, free: 420.9 MB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches