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.001166/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001227/0.001227, allocations: 192.6 kB / 16.14 MB, free: 6.641 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.338/1.338, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6949/0.6949, allocations: 93.71 MB / 383.7 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002467/0.002467, allocations: 87.3 kB / 462.7 MB, free: 22.28 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1248, allocations: 68.25 MB / 0.5185 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.129/1.254, allocations: 0.5674 GB / 1.086 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.5244/1.778, allocations: 49.7 MB / 1.135 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006363/1.785, allocations: 250.1 kB / 1.135 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00994/1.795, allocations: 3.659 MB / 1.138 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.04114/1.836, allocations: 16.56 MB / 1.154 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0148/1.851, allocations: 5.779 MB / 1.16 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01561/1.866, allocations: 13.27 MB / 1.173 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003866/1.87, allocations: 2.455 MB / 1.175 GB, free: 16.23 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008929/1.879, allocations: 4.077 MB / 1.179 GB, free: 16.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006795/1.886, allocations: 3.891 MB / 1.183 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001562/1.888, allocations: 355.1 kB / 1.184 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06999/1.958, allocations: 40.32 MB / 1.223 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003269/1.961, allocations: 1.673 MB / 1.225 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.006777/1.968, allocations: 3.08 MB / 1.228 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.05689/2.025, allocations: 23.68 MB / 1.251 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/2.025, allocations: 0 / 1.251 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.312e-06/2.025, allocations: 0 / 1.251 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0003479/2.025, allocations: 0 / 1.251 GB, free: 14.66 MB / 0.8106 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.02832/2.053, allocations: 10.01 MB / 1.261 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/2.053, allocations: 8.031 kB / 1.261 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002477/2.056, allocations: 0.6561 MB / 1.261 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008902/2.065, allocations: 4.059 MB / 1.265 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/2.065, allocations: 325.6 kB / 1.265 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001471/2.067, allocations: 444.5 kB / 1.266 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/2.081, allocations: 7.336 MB / 1.273 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.96e-05/2.081, allocations: 0 / 1.273 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000456/2.082, allocations: 176.3 kB / 1.273 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004855/2.082, allocations: 419.9 kB / 1.274 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/2.095, allocations: 8.299 MB / 1.282 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04818/2.143, allocations: 30.95 MB / 1.312 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009895/2.153, allocations: 4.362 MB / 1.316 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005709/2.159, allocations: 3.53 MB / 1.32 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/2.165, allocations: 8.105 MB / 1.328 GB, free: 2.066 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.43e-05/2.165, allocations: 86.56 kB / 1.328 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.4e-05/2.165, allocations: 0 / 1.328 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.05295/2.218, allocations: 20.44 MB / 1.348 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.696e-05/2.219, allocations: 125.1 kB / 1.348 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00663/2.225, allocations: 3.244 MB / 1.351 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.001409/2.227, allocations: 106.9 kB / 1.351 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.002157/2.229, allocations: 2.064 MB / 1.353 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.002733/2.232, allocations: 1.601 MB / 1.355 GB, free: 6.074 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003332/2.235, allocations: 0.7453 MB / 1.355 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001205/2.235, allocations: 305.1 kB / 1.356 GB, free: 5.035 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00527/2.24, allocations: 2.557 MB / 1.358 GB, free: 2.473 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006305/2.247, allocations: 2.822 MB / 1.361 GB, free: 15.65 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/2.259, allocations: 5.785 MB / 1.366 GB, free: 9.863 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.511e-05/2.259, allocations: 0 / 1.366 GB, free: 9.863 MB / 0.92 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01837/2.278, allocations: 7.394 MB / 1.374 GB, free: 2.48 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/2.278, allocations: 7.281 kB / 1.374 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/2.278, allocations: 0 / 1.374 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007826/2.285, allocations: 1.741 MB / 1.375 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00384/2.289, allocations: 0.711 MB / 1.376 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/2.305, allocations: 11.49 MB / 1.387 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005263/2.311, allocations: 336.1 kB / 1.388 GB, free: 3.859 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001522/2.312, allocations: 263.2 kB / 1.388 GB, free: 3.605 MB / 0.9356 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.004515/2.317, allocations: 1.288 MB / 1.389 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002261/2.319, allocations: 470.1 kB / 1.39 GB, free: 1.891 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02414/2.343, allocations: 11.04 MB / 1.4 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001635/2.343, allocations: 51.94 kB / 1.4 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.333e-05/2.343, allocations: 8 kB / 1.4 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/2.344, allocations: 27.84 kB / 1.4 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03475/2.378, allocations: 15.33 MB / 1.415 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.507e-05/2.378, allocations: 4 kB / 1.415 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003492/2.382, allocations: 0.6761 MB / 1.416 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007732/2.39, allocations: 1.783 MB / 1.418 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001226/2.391, allocations: 177.3 kB / 1.418 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/2.406, allocations: 11.54 MB / 1.429 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/2.406, allocations: 3.938 kB / 1.429 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02507/2.431, allocations: 11.79 MB / 1.441 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/2.432, allocations: 0.4951 MB / 1.441 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001676/2.434, allocations: 91.83 kB / 1.441 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004096/2.438, allocations: 323.3 kB / 1.442 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001343/2.44, allocations: 372 kB / 1.442 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001157/2.441, allocations: 257.5 kB / 1.442 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004503/2.445, allocations: 2.311 MB / 1.445 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4e-07/2.445, allocations: 0 / 1.445 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0124/2.458, allocations: 3.522 MB / 1.448 GB, free: 5.941 MB / 0.9981 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.0122/2.47, allocations: 4.01 MB / 1.452 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01442/2.484, allocations: 7.109 MB / 1.459 GB, free: 11.21 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/2.484, allocations: 3.938 kB / 1.459 GB, free: 11.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.008488/2.493, allocations: 4.19 MB / 1.463 GB, free: 7.078 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009105/2.502, allocations: 1.525 MB / 1.464 GB, free: 5.59 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02432/2.526, allocations: 13.61 MB / 1.478 GB, free: 7.98 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003534/2.53, allocations: 3.324 MB / 1.481 GB, free: 4.621 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.007292/2.537, allocations: 2.898 MB / 1.484 GB, free: 1.918 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/2.539, allocations: 0.5018 MB / 1.484 GB, free: 1.418 MB / 1.029 GB Notification: Performance of SimCode: time 9.62e-07/2.539, allocations: 0 / 1.484 GB, free: 1.418 MB / 1.029 GB Notification: Performance of Templates: time 0.432/2.971, allocations: 146.7 MB / 1.628 GB, free: 0.493 GB / 1.029 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches