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.001621/0.001621, allocations: 107.8 kB / 16.41 MB, free: 6.496 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.001761/0.001762, allocations: 187 kB / 17.34 MB, free: 5.766 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6678/0.6678, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 75.88 kB / 0.5175 GB, free: 4.121 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2953, allocations: 67.69 MB / 0.5836 GB, free: 13.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.202/1.497, allocations: 0.5571 GB / 1.141 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.04507/1.542, allocations: 48.28 MB / 1.188 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004471/1.546, allocations: 212.5 kB / 1.188 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.008896/1.555, allocations: 3.939 MB / 1.192 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.05054/1.606, allocations: 18.79 MB / 1.21 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.02098/1.627, allocations: 6.411 MB / 1.217 GB, free: 11.48 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01565/1.643, allocations: 9.145 MB / 1.226 GB, free: 2.625 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005921/1.649, allocations: 2.727 MB / 1.228 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009442/1.658, allocations: 4.628 MB / 1.233 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005538/1.664, allocations: 3.841 MB / 1.236 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001342/1.665, allocations: 0.5977 MB / 1.237 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05984/1.725, allocations: 36.04 MB / 1.272 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002749/1.728, allocations: 1.927 MB / 1.274 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004495/1.732, allocations: 3.342 MB / 1.277 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.04911/1.781, allocations: 22.89 MB / 1.3 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/1.781, allocations: 0 / 1.3 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.724e-06/1.781, allocations: 0 / 1.3 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001386/1.782, allocations: 0 / 1.3 GB, free: 11.01 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.02339/1.805, allocations: 9.979 MB / 1.309 GB, free: 1.102 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.805, allocations: 8.031 kB / 1.309 GB, free: 1.094 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/1.806, allocations: 0.6484 MB / 1.31 GB, free: 448 kB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007203/1.814, allocations: 4.382 MB / 1.314 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/1.814, allocations: 320.9 kB / 1.315 GB, free: 11.8 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007611/1.815, allocations: 449.4 kB / 1.315 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/1.826, allocations: 7.331 MB / 1.322 GB, free: 3.992 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.147e-05/1.826, allocations: 7.938 kB / 1.322 GB, free: 3.984 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004338/1.827, allocations: 176 kB / 1.322 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005012/1.827, allocations: 412.8 kB / 1.323 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/1.84, allocations: 8.307 MB / 1.331 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03929/1.879, allocations: 30.89 MB / 1.361 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006809/1.886, allocations: 4.343 MB / 1.365 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/1.891, allocations: 3.539 MB / 1.369 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006327/1.897, allocations: 8.104 MB / 1.377 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.777e-05/1.897, allocations: 82.56 kB / 1.377 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.097e-05/1.897, allocations: 0 / 1.377 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.3123/2.209, allocations: 20.43 MB / 1.397 GB, free: 481.9 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/2.209, allocations: 127.8 kB / 1.397 GB, free: 481.8 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003924/2.213, allocations: 3.208 MB / 1.4 GB, free: 480.7 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0008467/2.214, allocations: 101.4 kB / 1.4 GB, free: 480.6 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001079/2.215, allocations: 2.047 MB / 1.402 GB, free: 479 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001282/2.217, allocations: 1.599 MB / 1.404 GB, free: 477.8 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/2.218, allocations: 0.7498 MB / 1.404 GB, free: 477.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 3.799e-05/2.218, allocations: 305.1 kB / 1.405 GB, free: 477.2 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003146/2.221, allocations: 2.552 MB / 1.407 GB, free: 476.1 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00368/2.225, allocations: 2.817 MB / 1.41 GB, free: 475 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007363/2.232, allocations: 5.786 MB / 1.416 GB, free: 472.3 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/2.232, allocations: 3.938 kB / 1.416 GB, free: 472.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01123/2.243, allocations: 7.386 MB / 1.423 GB, free: 469.2 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/2.243, allocations: 7.688 kB / 1.423 GB, free: 469.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/2.243, allocations: 1.219 kB / 1.423 GB, free: 469.2 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006358/2.25, allocations: 1.751 MB / 1.425 GB, free: 468.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002931/2.253, allocations: 0.7104 MB / 1.425 GB, free: 468.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/2.264, allocations: 12.2 MB / 1.437 GB, free: 459.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/2.267, allocations: 106.9 kB / 1.437 GB, free: 459.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007708/2.268, allocations: 271.2 kB / 1.437 GB, free: 459.7 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.002401/2.27, allocations: 1.285 MB / 1.439 GB, free: 459 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001369/2.272, allocations: 462.6 kB / 1.439 GB, free: 458.8 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01595/2.288, allocations: 11.03 MB / 1.45 GB, free: 453.2 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001205/2.288, allocations: 49.09 kB / 1.45 GB, free: 453.2 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-05/2.288, allocations: 15.27 kB / 1.45 GB, free: 453.2 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.055e-05/2.288, allocations: 22.27 kB / 1.45 GB, free: 453.2 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02204/2.31, allocations: 15.27 MB / 1.465 GB, free: 439.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-05/2.31, allocations: 7.188 kB / 1.465 GB, free: 439.1 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/2.312, allocations: 0.6827 MB / 1.466 GB, free: 438.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006266/2.319, allocations: 1.784 MB / 1.467 GB, free: 436.6 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005179/2.319, allocations: 179.7 kB / 1.468 GB, free: 436.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/2.33, allocations: 12.21 MB / 1.479 GB, free: 423.9 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/2.33, allocations: 0 / 1.479 GB, free: 423.9 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01584/2.346, allocations: 11.79 MB / 1.491 GB, free: 412 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/2.347, allocations: 499.2 kB / 1.491 GB, free: 411.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007739/2.348, allocations: 103 kB / 1.492 GB, free: 411.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00189/2.35, allocations: 107.8 kB / 1.492 GB, free: 411.3 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006002/2.35, allocations: 370.4 kB / 1.492 GB, free: 411 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004614/2.351, allocations: 259.8 kB / 1.492 GB, free: 410.7 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002512/2.353, allocations: 2.29 MB / 1.494 GB, free: 408.4 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.8e-07/2.353, allocations: 0 / 1.494 GB, free: 408.4 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.008701/2.362, allocations: 3.517 MB / 1.498 GB, free: 405.3 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.007772/2.37, allocations: 4.012 MB / 1.502 GB, free: 402.3 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01019/2.38, allocations: 7.128 MB / 1.509 GB, free: 395.2 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/2.38, allocations: 0 / 1.509 GB, free: 395.2 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.005993/2.386, allocations: 4.206 MB / 1.513 GB, free: 390.9 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007148/2.393, allocations: 1.633 MB / 1.515 GB, free: 389.4 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/2.409, allocations: 11.47 MB / 1.526 GB, free: 378.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/2.411, allocations: 3.294 MB / 1.529 GB, free: 374.9 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002206/2.413, allocations: 0.5734 MB / 1.529 GB, free: 374.3 MB / 0.9512 GB Notification: Performance of SimCode: time 1.082e-06/2.413, allocations: 0 / 1.529 GB, free: 374.3 MB / 0.9512 GB Notification: Performance of Templates: time 0.2165/2.63, allocations: 308.5 MB / 1.831 GB, free: 65.73 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