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.007808/0.007808, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001799/0.001799, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6734/0.6734, allocations: 91.17 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 79.88 kB / 0.5169 GB, free: 8.988 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1225, allocations: 67.69 MB / 0.583 GB, free: 5.223 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.237/1.359, allocations: 0.5572 GB / 1.14 GB, free: 256 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.6327/1.992, allocations: 48.24 MB / 1.187 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006153/1.998, allocations: 215.5 kB / 1.187 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.01066/2.009, allocations: 4.109 MB / 1.191 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.05101/2.06, allocations: 19.05 MB / 1.21 GB, free: 32 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01713/2.077, allocations: 6.451 MB / 1.216 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01511/2.092, allocations: 9.156 MB / 1.225 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004249/2.097, allocations: 2.725 MB / 1.228 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01116/2.108, allocations: 4.644 MB / 1.232 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00795/2.116, allocations: 3.835 MB / 1.236 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00181/2.118, allocations: 0.5995 MB / 1.237 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07448/2.192, allocations: 36.08 MB / 1.272 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003468/2.196, allocations: 1.935 MB / 1.274 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005664/2.201, allocations: 3.335 MB / 1.277 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0576/2.259, allocations: 22.88 MB / 1.3 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/2.259, allocations: 4 kB / 1.3 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.108e-06/2.259, allocations: 3.984 kB / 1.3 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002563/2.259, allocations: 0 / 1.3 GB, free: 15.25 MB / 0.8731 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.02726/2.286, allocations: 9.973 MB / 1.309 GB, free: 6.441 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/2.287, allocations: 12.03 kB / 1.309 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/2.289, allocations: 0.6531 MB / 1.31 GB, free: 5.773 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008924/2.298, allocations: 4.378 MB / 1.314 GB, free: 2.605 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002721/2.298, allocations: 334.4 kB / 1.315 GB, free: 2.418 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/2.299, allocations: 446 kB / 1.315 GB, free: 2.117 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/2.316, allocations: 7.328 MB / 1.322 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/2.316, allocations: 7.375 kB / 1.322 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001062/2.318, allocations: 178.1 kB / 1.322 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005764/2.318, allocations: 408.8 kB / 1.323 GB, free: 10.17 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01551/2.334, allocations: 8.307 MB / 1.331 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05321/2.387, allocations: 30.9 MB / 1.361 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008614/2.396, allocations: 4.34 MB / 1.365 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006336/2.402, allocations: 3.531 MB / 1.369 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007776/2.41, allocations: 8.107 MB / 1.377 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000107/2.41, allocations: 90.55 kB / 1.377 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.466e-05/2.41, allocations: 0 / 1.377 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.05064/2.461, allocations: 20.42 MB / 1.397 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.169e-05/2.461, allocations: 127.7 kB / 1.397 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005524/2.466, allocations: 3.214 MB / 1.4 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0009393/2.467, allocations: 100.8 kB / 1.4 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001671/2.469, allocations: 2.048 MB / 1.402 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002144/2.471, allocations: 1.597 MB / 1.404 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00256/2.474, allocations: 0.7535 MB / 1.404 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.605e-05/2.474, allocations: 305.1 kB / 1.405 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004483/2.478, allocations: 2.549 MB / 1.407 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00507/2.483, allocations: 2.815 MB / 1.41 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/2.494, allocations: 5.788 MB / 1.415 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/2.494, allocations: 4 kB / 1.415 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01603/2.51, allocations: 7.383 MB / 1.423 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/2.51, allocations: 7.938 kB / 1.423 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/2.51, allocations: 0 / 1.423 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007011/2.517, allocations: 1.75 MB / 1.424 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003436/2.521, allocations: 0.7074 MB / 1.425 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/2.536, allocations: 12.19 MB / 1.437 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003238/2.54, allocations: 112.7 kB / 1.437 GB, free: 480 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/2.541, allocations: 265.5 kB / 1.437 GB, free: 216 kB / 0.9981 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.003555/2.544, allocations: 1.274 MB / 1.439 GB, free: 14.98 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00184/2.546, allocations: 473 kB / 1.439 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02113/2.567, allocations: 11.04 MB / 1.45 GB, free: 3.613 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001276/2.568, allocations: 48 kB / 1.45 GB, free: 3.566 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.301e-05/2.568, allocations: 15.94 kB / 1.45 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.056e-05/2.568, allocations: 23.91 kB / 1.45 GB, free: 3.527 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03064/2.598, allocations: 15.25 MB / 1.465 GB, free: 4.324 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.191e-05/2.598, allocations: 8.125 kB / 1.465 GB, free: 4.316 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/2.601, allocations: 0.6855 MB / 1.465 GB, free: 3.664 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00698/2.608, allocations: 1.793 MB / 1.467 GB, free: 1.855 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008237/2.609, allocations: 172.4 kB / 1.467 GB, free: 1.691 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/2.624, allocations: 12.23 MB / 1.479 GB, free: 5.098 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/2.624, allocations: 0 / 1.479 GB, free: 5.098 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02309/2.647, allocations: 11.79 MB / 1.491 GB, free: 9.309 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/2.648, allocations: 0.4913 MB / 1.491 GB, free: 8.793 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/2.649, allocations: 91.44 kB / 1.491 GB, free: 8.707 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002574/2.652, allocations: 109.1 kB / 1.491 GB, free: 8.605 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009847/2.653, allocations: 373.8 kB / 1.492 GB, free: 8.242 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008114/2.654, allocations: 254.5 kB / 1.492 GB, free: 7.996 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.004019/2.658, allocations: 2.298 MB / 1.494 GB, free: 5.691 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.7e-07/2.658, allocations: 0 / 1.494 GB, free: 5.691 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.01112/2.669, allocations: 3.511 MB / 1.498 GB, free: 2.188 MB / 1.061 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.01101/2.68, allocations: 4.021 MB / 1.502 GB, free: 14.53 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0138/2.694, allocations: 7.121 MB / 1.509 GB, free: 7.438 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/2.694, allocations: 0 / 1.509 GB, free: 7.438 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.008648/2.703, allocations: 4.211 MB / 1.513 GB, free: 3.297 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008618/2.711, allocations: 1.626 MB / 1.514 GB, free: 1.742 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02262/2.734, allocations: 11.3 MB / 1.525 GB, free: 6.43 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004237/2.738, allocations: 3.314 MB / 1.529 GB, free: 3.082 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.009185/2.747, allocations: 2.896 MB / 1.531 GB, free: 324 kB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002577/2.75, allocations: 0.5031 MB / 1.532 GB, free: 15.81 MB / 1.107 GB Notification: Performance of SimCode: time 1.573e-06/2.75, allocations: 0 / 1.532 GB, free: 15.81 MB / 1.107 GB Notification: Performance of Templates: time 0.5381/3.288, allocations: 148.8 MB / 1.677 GB, free: 0.5275 GB / 1.107 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