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.006685/0.006685, allocations: 102 kB / 15.73 MB, free: 6.035 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.001184/0.001184, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6227/0.6227, allocations: 91.18 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 79.88 kB / 0.5169 GB, free: 9.008 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1217, allocations: 67.69 MB / 0.583 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.064/1.186, allocations: 0.5571 GB / 1.14 GB, free: 260 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.4908/1.677, allocations: 48.24 MB / 1.187 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004105/1.681, allocations: 217.4 kB / 1.187 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.009039/1.69, allocations: 3.94 MB / 1.191 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.04128/1.731, allocations: 18.8 MB / 1.21 GB, free: 28 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01561/1.747, allocations: 6.411 MB / 1.216 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01256/1.76, allocations: 9.142 MB / 1.225 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003448/1.763, allocations: 2.73 MB / 1.227 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008863/1.772, allocations: 4.629 MB / 1.232 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006757/1.779, allocations: 3.836 MB / 1.236 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001517/1.78, allocations: 0.6055 MB / 1.236 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05962/1.84, allocations: 36.04 MB / 1.272 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0029/1.843, allocations: 1.935 MB / 1.273 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005215/1.848, allocations: 3.334 MB / 1.277 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.05472/1.903, allocations: 22.88 MB / 1.299 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/1.903, allocations: 8 kB / 1.299 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.953e-06/1.903, allocations: 0 / 1.299 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001483/1.903, allocations: 0 / 1.299 GB, free: 15.55 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.02325/1.926, allocations: 9.976 MB / 1.309 GB, free: 6.75 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/1.926, allocations: 12.03 kB / 1.309 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001485/1.928, allocations: 0.6582 MB / 1.309 GB, free: 6.074 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008621/1.936, allocations: 4.372 MB / 1.314 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/1.937, allocations: 327.4 kB / 1.314 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001483/1.938, allocations: 451.4 kB / 1.314 GB, free: 2.434 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/1.95, allocations: 7.332 MB / 1.322 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-05/1.951, allocations: 1.125 kB / 1.322 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004462/1.951, allocations: 176 kB / 1.322 GB, free: 11.09 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000481/1.951, allocations: 416.8 kB / 1.322 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01222/1.964, allocations: 8.305 MB / 1.33 GB, free: 2.352 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/2.005, allocations: 30.9 MB / 1.36 GB, free: 1.262 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007094/2.012, allocations: 4.341 MB / 1.365 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005709/2.018, allocations: 3.531 MB / 1.368 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006516/2.025, allocations: 8.109 MB / 1.376 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.317e-05/2.025, allocations: 89.38 kB / 1.376 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.171e-05/2.025, allocations: 0 / 1.376 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.03529/2.06, allocations: 20.42 MB / 1.396 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/2.06, allocations: 125.1 kB / 1.396 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/2.064, allocations: 3.222 MB / 1.399 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004327/2.065, allocations: 105.5 kB / 1.399 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001407/2.066, allocations: 2.044 MB / 1.401 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/2.067, allocations: 1.599 MB / 1.403 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/2.069, allocations: 0.7414 MB / 1.404 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.177e-05/2.069, allocations: 301.1 kB / 1.404 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003572/2.072, allocations: 2.553 MB / 1.407 GB, free: 80 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/2.076, allocations: 2.814 MB / 1.409 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008179/2.084, allocations: 5.793 MB / 1.415 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/2.085, allocations: 0 / 1.415 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01176/2.096, allocations: 7.387 MB / 1.422 GB, free: 96 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/2.096, allocations: 10.12 kB / 1.422 GB, free: 88 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/2.096, allocations: 0 / 1.422 GB, free: 88 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00652/2.103, allocations: 1.748 MB / 1.424 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/2.106, allocations: 0.7142 MB / 1.425 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01321/2.119, allocations: 12.19 MB / 1.436 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/2.122, allocations: 116.7 kB / 1.437 GB, free: 0.9805 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006062/2.122, allocations: 262.9 kB / 1.437 GB, free: 0.7266 MB / 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.002412/2.125, allocations: 1.27 MB / 1.438 GB, free: 15.49 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/2.126, allocations: 466.2 kB / 1.438 GB, free: 15.03 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/2.143, allocations: 11.04 MB / 1.449 GB, free: 4.129 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001006/2.143, allocations: 48 kB / 1.449 GB, free: 4.082 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.029e-05/2.143, allocations: 15.94 kB / 1.449 GB, free: 4.066 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-05/2.144, allocations: 23.91 kB / 1.449 GB, free: 4.043 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02475/2.168, allocations: 15.26 MB / 1.464 GB, free: 4.832 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-05/2.168, allocations: 0 / 1.464 GB, free: 4.832 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/2.171, allocations: 0.6858 MB / 1.465 GB, free: 4.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00655/2.177, allocations: 1.788 MB / 1.467 GB, free: 2.371 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005544/2.178, allocations: 176.9 kB / 1.467 GB, free: 2.203 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/2.191, allocations: 12.22 MB / 1.479 GB, free: 5.621 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/2.191, allocations: 0 / 1.479 GB, free: 5.621 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/2.211, allocations: 11.79 MB / 1.49 GB, free: 9.824 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/2.212, allocations: 499.1 kB / 1.491 GB, free: 9.312 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006477/2.212, allocations: 94.25 kB / 1.491 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001837/2.214, allocations: 110.3 kB / 1.491 GB, free: 9.121 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006821/2.215, allocations: 371 kB / 1.491 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000538/2.216, allocations: 253.7 kB / 1.492 GB, free: 8.516 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.003108/2.219, allocations: 2.298 MB / 1.494 GB, free: 6.211 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.91e-07/2.219, allocations: 0 / 1.494 GB, free: 6.211 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.009103/2.228, allocations: 3.518 MB / 1.497 GB, free: 2.699 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.008398/2.236, allocations: 4.022 MB / 1.501 GB, free: 15.04 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01214/2.248, allocations: 7.119 MB / 1.508 GB, free: 7.949 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/2.248, allocations: 4 kB / 1.508 GB, free: 7.945 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.006841/2.255, allocations: 4.203 MB / 1.512 GB, free: 3.812 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007067/2.262, allocations: 1.627 MB / 1.514 GB, free: 2.258 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/2.281, allocations: 11.31 MB / 1.525 GB, free: 6.941 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002943/2.284, allocations: 3.314 MB / 1.528 GB, free: 3.594 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.005856/2.29, allocations: 2.893 MB / 1.531 GB, free: 0.8359 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/2.291, allocations: 0.5031 MB / 1.531 GB, free: 340 kB / 1.092 GB Notification: Performance of SimCode: time 8.32e-07/2.291, allocations: 0 / 1.531 GB, free: 340 kB / 1.092 GB Notification: Performance of Templates: time 0.4399/2.731, allocations: 148.8 MB / 1.677 GB, free: 0.5281 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