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.001058/0.001058, allocations: 91.45 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 178.8 kB / 16.92 MB, free: 6.652 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.384/1.384, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6584/0.6584, allocations: 89.64 MB / 381.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003992, allocations: 14.09 kB / 461.3 MB, free: 24.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1153, allocations: 68.83 MB / 0.5177 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.23/1.345, allocations: 0.5574 GB / 1.075 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.545/1.89, allocations: 48.37 MB / 1.122 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005055/1.895, allocations: 53.72 kB / 1.122 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.009345/1.905, allocations: 3.613 MB / 1.126 GB, free: 1 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.04241/1.947, allocations: 16.25 MB / 1.142 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01615/1.963, allocations: 5.765 MB / 1.147 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01951/1.983, allocations: 12.44 MB / 1.16 GB, free: 0 / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003809/1.987, allocations: 2.275 MB / 1.162 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009153/1.996, allocations: 3.296 MB / 1.165 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007422/2.003, allocations: 3.296 MB / 1.168 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.00156/2.005, allocations: 200.4 kB / 1.168 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07834/2.083, allocations: 40.18 MB / 1.208 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.003335/2.087, allocations: 1.392 MB / 1.209 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.007664/2.094, allocations: 2.53 MB / 1.211 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.03864/2.133, allocations: 15.23 MB / 1.226 GB, free: 15.06 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/2.133, allocations: 0 / 1.226 GB, free: 15.06 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.106e-06/2.133, allocations: 4 kB / 1.226 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0003633/2.133, allocations: 3.938 kB / 1.226 GB, free: 15.05 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1130 * Number of variables: 1130 Notification: Performance of Generate backend data structure: time 0.0262/2.16, allocations: 7.997 MB / 1.234 GB, free: 7.473 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/2.16, allocations: 11.97 kB / 1.234 GB, free: 7.461 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002315/2.162, allocations: 0.5335 MB / 1.235 GB, free: 6.922 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006295/2.168, allocations: 2.508 MB / 1.237 GB, free: 5.074 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000384/2.169, allocations: 322 kB / 1.237 GB, free: 4.895 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001964/2.171, allocations: 440.7 kB / 1.238 GB, free: 4.605 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/2.188, allocations: 7.218 MB / 1.245 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/2.188, allocations: 3.938 kB / 1.245 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001152/2.19, allocations: 175.2 kB / 1.245 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006038/2.19, allocations: 409.6 kB / 1.245 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/2.204, allocations: 8.223 MB / 1.253 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03939/2.244, allocations: 27.33 MB / 1.28 GB, free: 9.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007261/2.251, allocations: 4.272 MB / 1.284 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005493/2.257, allocations: 3.531 MB / 1.288 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006636/2.263, allocations: 8.115 MB / 1.296 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.488e-05/2.263, allocations: 82.56 kB / 1.296 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=475): time 1.304e-05/2.263, allocations: 0 / 1.296 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of matching and sorting (n=479): time 0.04242/2.306, allocations: 19.79 MB / 1.315 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/2.306, allocations: 129.1 kB / 1.315 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003582/2.31, allocations: 2.117 MB / 1.317 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0009058/2.311, allocations: 102.7 kB / 1.317 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001143/2.312, allocations: 1.521 MB / 1.319 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.002073/2.314, allocations: 1.598 MB / 1.32 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/2.315, allocations: 296.8 kB / 1.321 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.926e-05/2.315, allocations: 305.1 kB / 1.321 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004817/2.32, allocations: 2.557 MB / 1.324 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004594/2.324, allocations: 2.811 MB / 1.326 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009597/2.334, allocations: 5.789 MB / 1.332 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/2.334, allocations: 4 kB / 1.332 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01608/2.35, allocations: 7.422 MB / 1.339 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.999e-05/2.35, allocations: 4 kB / 1.339 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/2.35, allocations: 4 kB / 1.339 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007424/2.358, allocations: 1.795 MB / 1.341 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003491/2.361, allocations: 0.7061 MB / 1.342 GB, free: 7.945 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/2.376, allocations: 11.54 MB / 1.353 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/2.38, allocations: 323.8 kB / 1.353 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00135/2.382, allocations: 263.2 kB / 1.353 GB, free: 11.46 MB / 0.8887 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 {(2,4), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.003622/2.385, allocations: 1.132 MB / 1.355 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001255/2.387, allocations: 347.7 kB / 1.355 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02114/2.408, allocations: 10.96 MB / 1.366 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001714/2.408, allocations: 52 kB / 1.366 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/2.408, allocations: 15.94 kB / 1.366 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.798e-05/2.408, allocations: 23.91 kB / 1.366 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02968/2.438, allocations: 14.92 MB / 1.38 GB, free: 84 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.622e-05/2.438, allocations: 4 kB / 1.38 GB, free: 80 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/2.441, allocations: 0.6788 MB / 1.381 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007194/2.448, allocations: 1.825 MB / 1.383 GB, free: 13.55 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009631/2.449, allocations: 170.2 kB / 1.383 GB, free: 13.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/2.464, allocations: 11.56 MB / 1.394 GB, free: 1.445 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/2.465, allocations: 7.938 kB / 1.394 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0218/2.486, allocations: 11.61 MB / 1.406 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/2.488, allocations: 432.5 kB / 1.406 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/2.489, allocations: 94.02 kB / 1.406 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003503/2.493, allocations: 313.2 kB / 1.406 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000959/2.494, allocations: 366.9 kB / 1.407 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008819/2.494, allocations: 258.8 kB / 1.407 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002947/2.497, allocations: 1.553 MB / 1.408 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.31e-07/2.497, allocations: 0 / 1.408 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.3232/2.821, allocations: 3.463 MB / 1.412 GB, free: 0.5062 GB / 0.9356 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 {(1,5), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01379/2.834, allocations: 4.148 MB / 1.416 GB, free: 0.5059 GB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01369/2.848, allocations: 7.124 MB / 1.423 GB, free: 0.5055 GB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/2.848, allocations: 1.938 kB / 1.423 GB, free: 0.5055 GB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.008074/2.856, allocations: 4.17 MB / 1.427 GB, free: 0.5049 GB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/2.867, allocations: 1.424 MB / 1.428 GB, free: 0.5045 GB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/2.889, allocations: 12.32 MB / 1.44 GB, free: 0.4984 GB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002285/2.891, allocations: 2.916 MB / 1.443 GB, free: 0.4974 GB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002361/2.893, allocations: 0.5054 MB / 1.444 GB, free: 0.4973 GB / 0.9356 GB Notification: Performance of SimCode: time 3.005e-06/2.893, allocations: 1.5 kB / 1.444 GB, free: 0.4973 GB / 0.9356 GB Notification: Performance of Templates: time 0.2237/3.117, allocations: 263.2 MB / 1.701 GB, free: 271.6 MB / 0.9356 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