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.00131/0.00131, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001267/0.001267, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.292/1.292, 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.6805/0.6805, allocations: 91.18 MB / 382.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 80.11 kB / 0.5175 GB, free: 4.082 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3279, allocations: 67.69 MB / 0.5836 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.305/1.633, allocations: 0.5571 GB / 1.141 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0543/1.687, allocations: 48.27 MB / 1.188 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005903/1.693, allocations: 215.4 kB / 1.188 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01059/1.704, allocations: 4.109 MB / 1.192 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.05161/1.756, allocations: 19.04 MB / 1.211 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01791/1.774, allocations: 6.451 MB / 1.217 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01322/1.787, allocations: 9.149 MB / 1.226 GB, free: 2.129 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004092/1.791, allocations: 2.732 MB / 1.229 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009871/1.801, allocations: 4.639 MB / 1.233 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006373/1.807, allocations: 3.836 MB / 1.237 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002262/1.81, allocations: 0.6016 MB / 1.237 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06364/1.873, allocations: 36.08 MB / 1.273 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003027/1.876, allocations: 1.931 MB / 1.275 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005766/1.882, allocations: 3.338 MB / 1.278 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.05755/1.94, allocations: 22.88 MB / 1.3 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/1.94, allocations: 4 kB / 1.3 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.884e-06/1.94, allocations: 0 / 1.3 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003308/1.94, allocations: 0 / 1.3 GB, free: 10.46 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.02679/1.967, allocations: 9.977 MB / 1.31 GB, free: 0.5508 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/1.967, allocations: 8.031 kB / 1.31 GB, free: 0.543 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002054/1.969, allocations: 0.6484 MB / 1.311 GB, free: 15.88 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008635/1.978, allocations: 4.378 MB / 1.315 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/1.978, allocations: 328.9 kB / 1.315 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/1.979, allocations: 444.1 kB / 1.316 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/1.993, allocations: 7.33 MB / 1.323 GB, free: 3.445 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.571e-05/1.993, allocations: 3.938 kB / 1.323 GB, free: 3.441 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004377/1.993, allocations: 181.3 kB / 1.323 GB, free: 3.277 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005158/1.994, allocations: 412.8 kB / 1.323 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/2.006, allocations: 8.301 MB / 1.331 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04315/2.05, allocations: 30.9 MB / 1.362 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007143/2.057, allocations: 4.351 MB / 1.366 GB, free: 4.863 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005055/2.062, allocations: 3.535 MB / 1.369 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006832/2.069, allocations: 8.114 MB / 1.377 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.509e-05/2.069, allocations: 82.56 kB / 1.377 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.458e-05/2.069, allocations: 0 / 1.377 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.3659/2.435, allocations: 20.42 MB / 1.397 GB, free: 482 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/2.435, allocations: 124.8 kB / 1.397 GB, free: 481.9 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003913/2.439, allocations: 3.208 MB / 1.401 GB, free: 480.8 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/2.44, allocations: 101.2 kB / 1.401 GB, free: 480.7 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/2.441, allocations: 2.051 MB / 1.403 GB, free: 479.1 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001812/2.443, allocations: 1.597 MB / 1.404 GB, free: 477.9 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/2.444, allocations: 0.7462 MB / 1.405 GB, free: 477.6 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 5.8e-05/2.444, allocations: 305.1 kB / 1.405 GB, free: 477.3 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003466/2.448, allocations: 2.549 MB / 1.408 GB, free: 476.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/2.452, allocations: 2.822 MB / 1.41 GB, free: 475.1 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008303/2.46, allocations: 5.785 MB / 1.416 GB, free: 472.4 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/2.46, allocations: 7.906 kB / 1.416 GB, free: 472.4 MB / 0.9512 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01205/2.472, allocations: 7.386 MB / 1.423 GB, free: 469.3 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/2.472, allocations: 3.906 kB / 1.423 GB, free: 469.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/2.472, allocations: 5.156 kB / 1.423 GB, free: 469.3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006275/2.479, allocations: 1.746 MB / 1.425 GB, free: 468.9 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/2.482, allocations: 0.7096 MB / 1.426 GB, free: 468.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/2.494, allocations: 12.2 MB / 1.438 GB, free: 459.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/2.497, allocations: 113.7 kB / 1.438 GB, free: 459.9 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008229/2.498, allocations: 268.2 kB / 1.438 GB, free: 459.8 MB / 0.9512 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.002562/2.501, allocations: 1.276 MB / 1.439 GB, free: 459.1 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001369/2.502, allocations: 462.8 kB / 1.44 GB, free: 458.9 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01601/2.518, allocations: 11.03 MB / 1.45 GB, free: 453.3 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/2.518, allocations: 46.44 kB / 1.45 GB, free: 453.3 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/2.518, allocations: 11 kB / 1.451 GB, free: 453.3 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.796e-05/2.518, allocations: 27.84 kB / 1.451 GB, free: 453.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0226/2.541, allocations: 15.27 MB / 1.465 GB, free: 438.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/2.541, allocations: 4 kB / 1.465 GB, free: 438.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/2.543, allocations: 0.6788 MB / 1.466 GB, free: 437.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006187/2.55, allocations: 1.791 MB / 1.468 GB, free: 436.1 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008678/2.55, allocations: 179.5 kB / 1.468 GB, free: 435.9 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/2.561, allocations: 12.21 MB / 1.48 GB, free: 423.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/2.562, allocations: 7.938 kB / 1.48 GB, free: 423.3 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/2.581, allocations: 11.79 MB / 1.491 GB, free: 411.5 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/2.583, allocations: 0.4906 MB / 1.492 GB, free: 411 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/2.584, allocations: 99.67 kB / 1.492 GB, free: 410.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/2.587, allocations: 107.8 kB / 1.492 GB, free: 410.8 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006397/2.587, allocations: 359.6 kB / 1.493 GB, free: 410.4 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005104/2.588, allocations: 267.2 kB / 1.493 GB, free: 410.2 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002648/2.59, allocations: 2.286 MB / 1.495 GB, free: 407.9 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.31e-07/2.59, allocations: 0 / 1.495 GB, free: 407.9 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01046/2.601, allocations: 3.523 MB / 1.498 GB, free: 404.7 MB / 0.9512 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.01001/2.611, allocations: 4.014 MB / 1.502 GB, free: 401.8 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01206/2.623, allocations: 7.119 MB / 1.509 GB, free: 394.6 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/2.623, allocations: 4 kB / 1.509 GB, free: 394.6 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.007362/2.63, allocations: 4.206 MB / 1.513 GB, free: 390.4 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008558/2.639, allocations: 1.641 MB / 1.515 GB, free: 388.9 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01927/2.658, allocations: 11.47 MB / 1.526 GB, free: 377.6 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/2.661, allocations: 3.294 MB / 1.529 GB, free: 374.4 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002592/2.663, allocations: 0.5695 MB / 1.53 GB, free: 373.8 MB / 0.9512 GB Notification: Performance of SimCode: time 1.192e-06/2.663, allocations: 3.75 kB / 1.53 GB, free: 373.8 MB / 0.9512 GB Notification: Performance of Templates: time 0.2321/2.896, allocations: 308.4 MB / 1.831 GB, free: 65.18 MB / 0.9512 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