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.008078/0.008078, allocations: 101.7 kB / 15.73 MB, free: 6.449 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.001834/0.001834, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8633/0.8633, allocations: 93.72 MB / 384.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 79.88 kB / 0.5204 GB, free: 5.762 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1381, allocations: 68.26 MB / 0.5871 GB, free: 1.422 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.344/1.482, allocations: 0.5572 GB / 1.144 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.7245/2.206, allocations: 48.32 MB / 1.191 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006576/2.213, allocations: 224.2 kB / 1.192 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01125/2.224, allocations: 3.941 MB / 1.196 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.05786/2.282, allocations: 18.84 MB / 1.214 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.02177/2.304, allocations: 6.414 MB / 1.22 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01758/2.322, allocations: 9.242 MB / 1.229 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005307/2.327, allocations: 2.738 MB / 1.232 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01337/2.34, allocations: 4.574 MB / 1.236 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009337/2.35, allocations: 3.839 MB / 1.24 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002717/2.353, allocations: 0.5995 MB / 1.241 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0709/2.424, allocations: 36.06 MB / 1.276 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.004789/2.428, allocations: 1.93 MB / 1.278 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00882/2.437, allocations: 3.345 MB / 1.281 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0695/2.507, allocations: 23 MB / 1.304 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/2.507, allocations: 0 / 1.304 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.625e-06/2.507, allocations: 0 / 1.304 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003711/2.507, allocations: 0 / 1.304 GB, free: 7.086 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.03117/2.538, allocations: 10.37 MB / 1.314 GB, free: 13.86 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/2.538, allocations: 8.031 kB / 1.314 GB, free: 13.86 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0031/2.542, allocations: 0.6832 MB / 1.314 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01072/2.552, allocations: 4.466 MB / 1.319 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000371/2.553, allocations: 334.4 kB / 1.319 GB, free: 9.734 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002158/2.555, allocations: 444.1 kB / 1.319 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/2.574, allocations: 7.33 MB / 1.327 GB, free: 4.605 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/2.574, allocations: 0 / 1.327 GB, free: 4.605 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008994/2.575, allocations: 176 kB / 1.327 GB, free: 4.57 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006395/2.575, allocations: 415.3 kB / 1.327 GB, free: 4.23 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01703/2.593, allocations: 8.306 MB / 1.335 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05221/2.645, allocations: 30.96 MB / 1.365 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008643/2.653, allocations: 4.345 MB / 1.37 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007983/2.661, allocations: 3.528 MB / 1.373 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007705/2.669, allocations: 8.105 MB / 1.381 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/2.669, allocations: 81.19 kB / 1.381 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.561e-05/2.67, allocations: 4 kB / 1.381 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.04689/2.716, allocations: 20.58 MB / 1.401 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/2.717, allocations: 137 kB / 1.401 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004743/2.721, allocations: 3.244 MB / 1.405 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0009363/2.722, allocations: 103.4 kB / 1.405 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001701/2.724, allocations: 2.091 MB / 1.407 GB, free: 420 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.00219/2.726, allocations: 1.682 MB / 1.408 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001783/2.728, allocations: 0.744 MB / 1.409 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001404/2.728, allocations: 305.1 kB / 1.409 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004678/2.733, allocations: 2.555 MB / 1.412 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/2.738, allocations: 2.82 MB / 1.415 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009841/2.747, allocations: 5.791 MB / 1.42 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/2.747, allocations: 0 / 1.42 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.0155/2.763, allocations: 7.415 MB / 1.428 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/2.763, allocations: 4 kB / 1.428 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/2.763, allocations: 4 kB / 1.428 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007535/2.771, allocations: 1.741 MB / 1.429 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003647/2.774, allocations: 0.7108 MB / 1.43 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/2.79, allocations: 12.22 MB / 1.442 GB, free: 12.12 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/2.793, allocations: 112.1 kB / 1.442 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/2.794, allocations: 262.8 kB / 1.442 GB, free: 11.77 MB / 1.014 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.003234/2.797, allocations: 1.28 MB / 1.443 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/2.799, allocations: 492.8 kB / 1.444 GB, free: 10.04 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02026/2.819, allocations: 11.04 MB / 1.455 GB, free: 15.13 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001488/2.819, allocations: 48 kB / 1.455 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.745e-05/2.819, allocations: 12 kB / 1.455 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.71e-05/2.819, allocations: 23.91 kB / 1.455 GB, free: 15.05 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02962/2.849, allocations: 15.28 MB / 1.47 GB, free: 15.81 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-05/2.849, allocations: 0 / 1.47 GB, free: 15.81 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003004/2.852, allocations: 0.6826 MB / 1.47 GB, free: 15.16 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007307/2.859, allocations: 1.789 MB / 1.472 GB, free: 13.35 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009694/2.86, allocations: 180 kB / 1.472 GB, free: 13.18 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01516/2.876, allocations: 12.22 MB / 1.484 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/2.876, allocations: 4 kB / 1.484 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02281/2.898, allocations: 11.83 MB / 1.496 GB, free: 4.754 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/2.9, allocations: 0.5135 MB / 1.496 GB, free: 4.219 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00128/2.901, allocations: 89.55 kB / 1.496 GB, free: 4.137 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002393/2.904, allocations: 112.7 kB / 1.496 GB, free: 4.031 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/2.905, allocations: 369.4 kB / 1.497 GB, free: 3.672 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006882/2.905, allocations: 265.4 kB / 1.497 GB, free: 3.418 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.003581/2.909, allocations: 2.311 MB / 1.499 GB, free: 1.102 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.21e-07/2.909, allocations: 0 / 1.499 GB, free: 1.102 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.01084/2.92, allocations: 3.567 MB / 1.503 GB, free: 13.54 MB / 1.076 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.01055/2.93, allocations: 4.059 MB / 1.507 GB, free: 9.836 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01497/2.945, allocations: 7.136 MB / 1.514 GB, free: 2.727 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/2.945, allocations: 0 / 1.514 GB, free: 2.727 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.009053/2.954, allocations: 4.226 MB / 1.518 GB, free: 14.57 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01013/2.965, allocations: 1.626 MB / 1.519 GB, free: 13.02 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02597/2.991, allocations: 11.54 MB / 1.531 GB, free: 1.477 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004814/2.995, allocations: 3.328 MB / 1.534 GB, free: 14.11 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.007227/3.003, allocations: 2.898 MB / 1.537 GB, free: 11.36 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002015/3.005, allocations: 0.5109 MB / 1.537 GB, free: 10.84 MB / 1.107 GB Notification: Performance of SimCode: time 1.282e-06/3.005, allocations: 3.375 kB / 1.537 GB, free: 10.84 MB / 1.107 GB Notification: Performance of Templates: time 0.5048/3.51, allocations: 148.8 MB / 1.683 GB, free: 0.5815 GB / 1.139 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