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.001656/0.001656, allocations: 106.6 kB / 16.35 MB, free: 5.824 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.001816/0.001816, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6499/0.6499, allocations: 89.5 MB / 380.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 84.14 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1107, allocations: 67.3 MB / 0.5146 GB, free: 7.203 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.273/1.384, allocations: 0.556 GB / 1.071 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.04363/1.427, allocations: 47.79 MB / 1.117 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003272/1.431, allocations: 53 kB / 1.117 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007506/1.438, allocations: 3.857 MB / 1.121 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.04087/1.479, allocations: 18.48 MB / 1.139 GB, free: 8.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01447/1.493, allocations: 6.391 MB / 1.145 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01009/1.504, allocations: 7.98 MB / 1.153 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003197/1.507, allocations: 2.591 MB / 1.156 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00699/1.514, allocations: 4.061 MB / 1.16 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005204/1.519, allocations: 3.644 MB / 1.163 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001051/1.52, allocations: 0.5938 MB / 1.164 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06007/1.58, allocations: 36.03 MB / 1.199 GB, free: 6.926 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002595/1.583, allocations: 1.855 MB / 1.201 GB, free: 5.09 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004003/1.587, allocations: 3.021 MB / 1.204 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.05076/1.638, allocations: 21.83 MB / 1.225 GB, free: 13.44 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/1.638, allocations: 4 kB / 1.225 GB, free: 13.44 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.074e-06/1.638, allocations: 0 / 1.225 GB, free: 13.44 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.804e-05/1.638, allocations: 0 / 1.225 GB, free: 13.44 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.02074/1.659, allocations: 8.982 MB / 1.234 GB, free: 4.441 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/1.659, allocations: 8.031 kB / 1.234 GB, free: 4.434 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/1.66, allocations: 0.5288 MB / 1.234 GB, free: 3.898 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004198/1.664, allocations: 2.517 MB / 1.237 GB, free: 1.355 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/1.664, allocations: 316.7 kB / 1.237 GB, free: 1.055 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006333/1.665, allocations: 447.5 kB / 1.238 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/1.675, allocations: 7.222 MB / 1.245 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.913e-05/1.675, allocations: 2.062 kB / 1.245 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000381/1.676, allocations: 175.9 kB / 1.245 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004458/1.676, allocations: 404.6 kB / 1.245 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01171/1.688, allocations: 8.223 MB / 1.253 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03272/1.721, allocations: 27.24 MB / 1.28 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/1.727, allocations: 4.254 MB / 1.284 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004668/1.732, allocations: 3.528 MB / 1.287 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005989/1.738, allocations: 8.112 MB / 1.295 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.168e-05/1.738, allocations: 86.5 kB / 1.295 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=475): time 9.618e-06/1.738, allocations: 0 / 1.295 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=479): time 0.03376/1.772, allocations: 19.73 MB / 1.315 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/1.772, allocations: 129.1 kB / 1.315 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/1.775, allocations: 2.121 MB / 1.317 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0004652/1.775, allocations: 100.7 kB / 1.317 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009686/1.776, allocations: 1.517 MB / 1.318 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001246/1.777, allocations: 1.606 MB / 1.32 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001259/1.779, allocations: 0.745 MB / 1.321 GB, free: 6.887 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 8.541e-05/1.779, allocations: 309.1 kB / 1.321 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003694/1.783, allocations: 2.549 MB / 1.324 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/1.787, allocations: 2.811 MB / 1.326 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00858/1.795, allocations: 5.791 MB / 1.332 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/1.795, allocations: 0.875 kB / 1.332 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01391/1.809, allocations: 7.401 MB / 1.339 GB, free: 4 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/1.809, allocations: 12.56 kB / 1.339 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/1.809, allocations: 0 / 1.339 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00673/1.816, allocations: 1.748 MB / 1.341 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/1.819, allocations: 0.71 MB / 1.342 GB, free: 1.508 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2277/2.047, allocations: 12.2 MB / 1.353 GB, free: 472.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/2.049, allocations: 108.9 kB / 1.354 GB, free: 472.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006545/2.05, allocations: 267.3 kB / 1.354 GB, free: 472.1 MB / 0.9044 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.002065/2.052, allocations: 1.121 MB / 1.355 GB, free: 471.9 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/2.053, allocations: 349.4 kB / 1.355 GB, free: 471.9 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/2.07, allocations: 10.95 MB / 1.366 GB, free: 470.8 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/2.07, allocations: 48 kB / 1.366 GB, free: 470.8 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.437e-05/2.07, allocations: 10.16 kB / 1.366 GB, free: 470.8 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.592e-05/2.07, allocations: 26.7 kB / 1.366 GB, free: 470.8 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02403/2.094, allocations: 14.84 MB / 1.381 GB, free: 464.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/2.094, allocations: 6.375 kB / 1.381 GB, free: 464.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002741/2.097, allocations: 0.6848 MB / 1.381 GB, free: 464.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006772/2.104, allocations: 1.774 MB / 1.383 GB, free: 464.1 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006327/2.104, allocations: 173.6 kB / 1.383 GB, free: 464 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/2.117, allocations: 12.22 MB / 1.395 GB, free: 455.3 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/2.117, allocations: 1.641 kB / 1.395 GB, free: 455.3 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01753/2.134, allocations: 11.61 MB / 1.406 GB, free: 450.3 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/2.135, allocations: 410.8 kB / 1.407 GB, free: 450 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006132/2.136, allocations: 89.02 kB / 1.407 GB, free: 450 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/2.138, allocations: 111.6 kB / 1.407 GB, free: 449.9 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006798/2.139, allocations: 368.3 kB / 1.407 GB, free: 449.9 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005195/2.139, allocations: 259.3 kB / 1.408 GB, free: 449.8 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001828/2.141, allocations: 1.55 MB / 1.409 GB, free: 449.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.192e-06/2.141, allocations: 1.969 kB / 1.409 GB, free: 449.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.008188/2.149, allocations: 3.469 MB / 1.412 GB, free: 448.7 MB / 0.9044 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.008894/2.158, allocations: 4.021 MB / 1.416 GB, free: 448.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01186/2.17, allocations: 7.134 MB / 1.423 GB, free: 445.5 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/2.17, allocations: 3.938 kB / 1.423 GB, free: 445.5 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.006174/2.176, allocations: 4.171 MB / 1.427 GB, free: 443.8 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005502/2.182, allocations: 1.539 MB / 1.429 GB, free: 443.4 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/2.195, allocations: 9.986 MB / 1.439 GB, free: 439.2 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002006/2.197, allocations: 2.922 MB / 1.442 GB, free: 437.8 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.004895/2.202, allocations: 2.778 MB / 1.444 GB, free: 435.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/2.203, allocations: 443.2 kB / 1.445 GB, free: 434.9 MB / 0.9044 GB Notification: Performance of SimCode: time 6.91e-07/2.203, allocations: 0 / 1.445 GB, free: 434.9 MB / 0.9044 GB Notification: Performance of Templates: time 0.1647/2.368, allocations: 144.6 MB / 1.586 GB, free: 291.4 MB / 0.9044 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 -s gbode -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