Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001964/0.001963, allocations: 104.8 kB / 15.99 MB, free: 5.883 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.002245/0.002245, allocations: 198.6 kB / 16.91 MB, free: 5.742 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.429/1.429, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9173/0.9173, allocations: 93.69 MB / 384.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003623/0.003623, allocations: 75.88 kB / 463.5 MB, free: 6.52 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1721, allocations: 68.27 MB / 0.5193 GB, free: 2.172 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.571/1.743, allocations: 0.556 GB / 1.075 GB, free: 24 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.05758/1.801, allocations: 48.61 MB / 1.123 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007205/1.808, allocations: 253 kB / 1.123 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.01002/1.818, allocations: 3.632 MB / 1.127 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.05318/1.871, allocations: 17.31 MB / 1.143 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01795/1.889, allocations: 5.97 MB / 1.149 GB, free: 9.605 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01342/1.903, allocations: 9.254 MB / 1.158 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005936/1.909, allocations: 2.732 MB / 1.161 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01119/1.92, allocations: 4.646 MB / 1.166 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007013/1.927, allocations: 4.061 MB / 1.17 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.002558/1.929, allocations: 0.6016 MB / 1.17 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07188/2.001, allocations: 37.6 MB / 1.207 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00373/2.005, allocations: 1.936 MB / 1.209 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00737/2.013, allocations: 3.34 MB / 1.212 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0361/2.049, allocations: 16.27 MB / 1.228 GB, free: 7.762 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/2.049, allocations: 0 / 1.228 GB, free: 7.762 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.933e-06/2.049, allocations: 0 / 1.228 GB, free: 7.762 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003077/2.049, allocations: 4 kB / 1.228 GB, free: 7.758 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: 1158 * Number of variables: 1158 Notification: Performance of Generate backend data structure: time 0.02937/2.078, allocations: 10.01 MB / 1.238 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/2.078, allocations: 8.031 kB / 1.238 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002715/2.081, allocations: 0.6561 MB / 1.238 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009571/2.091, allocations: 4.053 MB / 1.242 GB, free: 9.156 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/2.091, allocations: 327.9 kB / 1.243 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/2.093, allocations: 443.8 kB / 1.243 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01786/2.111, allocations: 7.335 MB / 1.25 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000153/2.111, allocations: 3.938 kB / 1.25 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/2.112, allocations: 179.4 kB / 1.25 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006637/2.113, allocations: 412.8 kB / 1.251 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/2.129, allocations: 8.299 MB / 1.259 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05361/2.183, allocations: 30.96 MB / 1.289 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009041/2.192, allocations: 4.344 MB / 1.293 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006916/2.199, allocations: 3.535 MB / 1.297 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00792/2.207, allocations: 8.107 MB / 1.305 GB, free: 5.086 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/2.207, allocations: 82.56 kB / 1.305 GB, free: 4.996 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.786e-05/2.207, allocations: 0 / 1.305 GB, free: 4.996 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.05486/2.262, allocations: 20.44 MB / 1.325 GB, free: 236 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/2.262, allocations: 129.1 kB / 1.325 GB, free: 88 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005969/2.268, allocations: 3.24 MB / 1.328 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.001147/2.269, allocations: 103.8 kB / 1.328 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.002043/2.271, allocations: 2.068 MB / 1.33 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.002386/2.274, allocations: 1.6 MB / 1.332 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003121/2.277, allocations: 0.7506 MB / 1.332 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001301/2.277, allocations: 305.1 kB / 1.333 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005097/2.282, allocations: 2.553 MB / 1.335 GB, free: 5.449 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005935/2.288, allocations: 2.819 MB / 1.338 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/2.3, allocations: 5.788 MB / 1.344 GB, free: 12.84 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.34e-05/2.3, allocations: 5.188 kB / 1.344 GB, free: 12.83 MB / 0.92 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01916/2.319, allocations: 7.381 MB / 1.351 GB, free: 5.426 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/2.319, allocations: 12.56 kB / 1.351 GB, free: 5.414 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/2.319, allocations: 3.938 kB / 1.351 GB, free: 5.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007623/2.327, allocations: 1.751 MB / 1.353 GB, free: 3.637 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003649/2.331, allocations: 0.7148 MB / 1.353 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2904/2.621, allocations: 12.21 MB / 1.365 GB, free: 481 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/2.628, allocations: 320.7 kB / 1.365 GB, free: 481 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/2.63, allocations: 264.3 kB / 1.366 GB, free: 481 MB / 0.92 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.005166/2.635, allocations: 1.279 MB / 1.367 GB, free: 480.8 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002119/2.637, allocations: 469.5 kB / 1.367 GB, free: 480.8 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02103/2.658, allocations: 11.05 MB / 1.378 GB, free: 480.2 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001727/2.659, allocations: 48.72 kB / 1.378 GB, free: 480.2 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-05/2.659, allocations: 11.53 kB / 1.378 GB, free: 480.2 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.683e-05/2.659, allocations: 27.5 kB / 1.378 GB, free: 480.2 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03293/2.692, allocations: 15.33 MB / 1.393 GB, free: 473.7 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.834e-05/2.692, allocations: 2.344 kB / 1.393 GB, free: 473.7 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003339/2.695, allocations: 0.6821 MB / 1.394 GB, free: 473.7 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007737/2.703, allocations: 1.789 MB / 1.396 GB, free: 473.3 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001319/2.704, allocations: 183.1 kB / 1.396 GB, free: 473.2 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/2.719, allocations: 12.23 MB / 1.408 GB, free: 464.5 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/2.719, allocations: 1.438 kB / 1.408 GB, free: 464.5 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02414/2.743, allocations: 11.79 MB / 1.419 GB, free: 459.6 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/2.745, allocations: 0.4989 MB / 1.42 GB, free: 459.2 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001935/2.747, allocations: 96.89 kB / 1.42 GB, free: 459.1 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004181/2.751, allocations: 328.1 kB / 1.42 GB, free: 459.1 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001398/2.752, allocations: 366.2 kB / 1.421 GB, free: 459 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001111/2.753, allocations: 256.4 kB / 1.421 GB, free: 459 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003987/2.757, allocations: 2.308 MB / 1.423 GB, free: 458.1 MB / 0.92 GB Notification: Performance of sort global known variables: time 4.51e-07/2.757, allocations: 0 / 1.423 GB, free: 458.1 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.01187/2.769, allocations: 3.521 MB / 1.426 GB, free: 457.5 MB / 0.92 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.01129/2.781, allocations: 4.018 MB / 1.43 GB, free: 457.1 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.02265/2.803, allocations: 9.692 MB / 1.44 GB, free: 454.3 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/2.803, allocations: 2.906 kB / 1.44 GB, free: 454.3 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.008177/2.812, allocations: 4.211 MB / 1.444 GB, free: 452.6 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009406/2.821, allocations: 1.628 MB / 1.446 GB, free: 452.2 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02232/2.843, allocations: 13.78 MB / 1.459 GB, free: 442.9 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004147/2.848, allocations: 3.309 MB / 1.462 GB, free: 440.2 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003265/2.851, allocations: 0.5702 MB / 1.463 GB, free: 439.6 MB / 0.92 GB Notification: Performance of SimCode: time 9.52e-07/2.851, allocations: 0 / 1.463 GB, free: 439.6 MB / 0.92 GB Notification: Performance of Templates: time 0.2474/3.098, allocations: 309 MB / 1.765 GB, free: 130.7 MB / 0.92 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches