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.001598/0.001598, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002492/0.002492, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.721/1.721, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7984/0.7984, allocations: 93.71 MB / 383.8 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001617, allocations: 92.59 kB / 462.9 MB, free: 22.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1231, allocations: 68.26 MB / 0.5187 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.213/1.336, allocations: 0.556 GB / 1.075 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.5737/1.909, allocations: 48.58 MB / 1.122 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008802/1.918, allocations: 252.1 kB / 1.122 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01146/1.93, allocations: 3.622 MB / 1.126 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0549/1.985, allocations: 17.31 MB / 1.143 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0175/2.002, allocations: 5.971 MB / 1.149 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01383/2.016, allocations: 9.251 MB / 1.158 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005279/2.022, allocations: 2.736 MB / 1.16 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01168/2.033, allocations: 4.649 MB / 1.165 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007927/2.041, allocations: 4.062 MB / 1.169 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.002716/2.044, allocations: 0.6051 MB / 1.169 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06521/2.109, allocations: 37.6 MB / 1.206 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003615/2.113, allocations: 1.934 MB / 1.208 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.005726/2.119, allocations: 3.34 MB / 1.211 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.06129/2.18, allocations: 24.18 MB / 1.235 GB, free: 2.988 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/2.18, allocations: 8 kB / 1.235 GB, free: 2.98 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.333e-06/2.18, allocations: 0 / 1.235 GB, free: 2.98 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003263/2.18, allocations: 0 / 1.235 GB, free: 2.98 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.02713/2.207, allocations: 10.01 MB / 1.245 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/2.207, allocations: 8.031 kB / 1.245 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/2.209, allocations: 0.6568 MB / 1.245 GB, free: 9.469 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/2.216, allocations: 4.054 MB / 1.249 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/2.216, allocations: 321 kB / 1.25 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009522/2.217, allocations: 449.9 kB / 1.25 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/2.232, allocations: 7.33 MB / 1.257 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.799e-05/2.232, allocations: 4 kB / 1.257 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004418/2.232, allocations: 182.1 kB / 1.257 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000499/2.233, allocations: 418.2 kB / 1.258 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/2.246, allocations: 8.298 MB / 1.266 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06955/2.316, allocations: 30.96 MB / 1.296 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008715/2.325, allocations: 4.352 MB / 1.3 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006366/2.331, allocations: 3.539 MB / 1.304 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007392/2.338, allocations: 8.107 MB / 1.312 GB, free: 7.535 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/2.339, allocations: 86.56 kB / 1.312 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.852e-05/2.339, allocations: 0 / 1.312 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.06501/2.404, allocations: 20.43 MB / 1.332 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/2.404, allocations: 129.1 kB / 1.332 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007864/2.412, allocations: 3.244 MB / 1.335 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.001371/2.413, allocations: 103.6 kB / 1.335 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.002332/2.415, allocations: 2.068 MB / 1.337 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.002727/2.418, allocations: 1.599 MB / 1.339 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002303/2.421, allocations: 0.7503 MB / 1.339 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001243/2.421, allocations: 309 kB / 1.34 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006589/2.427, allocations: 2.557 MB / 1.342 GB, free: 7.949 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008305/2.436, allocations: 2.814 MB / 1.345 GB, free: 5.137 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/2.447, allocations: 5.789 MB / 1.351 GB, free: 15.34 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.975e-05/2.447, allocations: 0 / 1.351 GB, free: 15.34 MB / 0.92 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01747/2.465, allocations: 7.385 MB / 1.358 GB, free: 7.969 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/2.465, allocations: 11.98 kB / 1.358 GB, free: 7.957 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/2.465, allocations: 3.938 kB / 1.358 GB, free: 7.953 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007406/2.472, allocations: 1.753 MB / 1.36 GB, free: 6.18 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003532/2.476, allocations: 0.7093 MB / 1.36 GB, free: 5.504 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01594/2.492, allocations: 12.2 MB / 1.372 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004149/2.496, allocations: 323.9 kB / 1.373 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001364/2.497, allocations: 270.2 kB / 1.373 GB, free: 8.363 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.004068/2.502, allocations: 1.279 MB / 1.374 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002174/2.504, allocations: 466.1 kB / 1.374 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02384/2.528, allocations: 11.05 MB / 1.385 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002159/2.528, allocations: 48 kB / 1.385 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.456e-05/2.528, allocations: 15.94 kB / 1.385 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001558/2.528, allocations: 23.91 kB / 1.385 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03326/2.561, allocations: 15.32 MB / 1.4 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.325e-05/2.561, allocations: 8.062 kB / 1.4 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/2.565, allocations: 0.6844 MB / 1.401 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00751/2.572, allocations: 1.788 MB / 1.403 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001147/2.573, allocations: 181.3 kB / 1.403 GB, free: 9.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/2.588, allocations: 12.23 MB / 1.415 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.588, allocations: 4 kB / 1.415 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02311/2.611, allocations: 11.79 MB / 1.426 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002142/2.613, allocations: 0.4951 MB / 1.427 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/2.615, allocations: 92.98 kB / 1.427 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/2.618, allocations: 323.6 kB / 1.427 GB, free: 440 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009377/2.619, allocations: 370.1 kB / 1.428 GB, free: 76 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000645/2.62, allocations: 258.5 kB / 1.428 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003495/2.624, allocations: 2.311 MB / 1.43 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/2.624, allocations: 0 / 1.43 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01165/2.635, allocations: 3.522 MB / 1.434 GB, free: 9.992 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.01146/2.647, allocations: 4.025 MB / 1.437 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.026/2.673, allocations: 9.686 MB / 1.447 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/2.673, allocations: 0 / 1.447 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.008297/2.681, allocations: 4.213 MB / 1.451 GB, free: 8.562 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007896/2.689, allocations: 1.64 MB / 1.453 GB, free: 7.004 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02191/2.711, allocations: 13.61 MB / 1.466 GB, free: 9.398 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00331/2.714, allocations: 3.32 MB / 1.469 GB, free: 6.043 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.007119/2.721, allocations: 2.901 MB / 1.472 GB, free: 3.316 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/2.723, allocations: 0.4992 MB / 1.473 GB, free: 2.816 MB / 1.029 GB Notification: Performance of SimCode: time 9.72e-07/2.723, allocations: 0 / 1.473 GB, free: 2.816 MB / 1.029 GB Notification: Performance of Templates: time 0.4941/3.217, allocations: 150.2 MB / 1.619 GB, free: 0.4903 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