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.001633/0.001633, allocations: 108 kB / 15.61 MB, free: 148 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.001965/0.001965, allocations: 193.6 kB / 16.53 MB, free: 6.664 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6684/0.6684, allocations: 91.2 MB / 381.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 79.06 kB / 460.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1203, allocations: 67.69 MB / 0.5156 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.153/1.273, allocations: 0.5571 GB / 1.073 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.5501/1.824, allocations: 48.25 MB / 1.12 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006068/1.83, allocations: 215.2 kB / 1.12 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01078/1.84, allocations: 3.943 MB / 1.124 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.05176/1.892, allocations: 18.8 MB / 1.142 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.01852/1.911, allocations: 6.421 MB / 1.149 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01519/1.926, allocations: 9.128 MB / 1.157 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005035/1.931, allocations: 2.72 MB / 1.16 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/1.943, allocations: 4.518 MB / 1.165 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008113/1.951, allocations: 3.844 MB / 1.168 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.002542/1.953, allocations: 0.6045 MB / 1.169 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06913/2.022, allocations: 35.99 MB / 1.204 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004207/2.027, allocations: 1.933 MB / 1.206 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.008244/2.035, allocations: 3.335 MB / 1.209 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.06058/2.096, allocations: 22.64 MB / 1.231 GB, free: 6.035 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/2.096, allocations: 0 / 1.231 GB, free: 6.035 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/2.096, allocations: 0 / 1.231 GB, free: 6.035 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0002611/2.096, allocations: 0 / 1.231 GB, free: 6.035 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.02641/2.122, allocations: 9.985 MB / 1.241 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/2.122, allocations: 8.031 kB / 1.241 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0021/2.124, allocations: 0.6525 MB / 1.242 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008037/2.133, allocations: 4.016 MB / 1.246 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/2.133, allocations: 327.4 kB / 1.246 GB, free: 9.562 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0013/2.134, allocations: 441.8 kB / 1.246 GB, free: 9.277 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/2.147, allocations: 7.335 MB / 1.254 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.644e-05/2.147, allocations: 0 / 1.254 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005885/2.148, allocations: 181 kB / 1.254 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005119/2.149, allocations: 412.5 kB / 1.254 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/2.162, allocations: 8.304 MB / 1.262 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04764/2.209, allocations: 31.1 MB / 1.293 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007655/2.217, allocations: 4.345 MB / 1.297 GB, free: 6.934 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005409/2.222, allocations: 3.532 MB / 1.3 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006468/2.229, allocations: 8.107 MB / 1.308 GB, free: 9.594 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.92e-05/2.229, allocations: 86.5 kB / 1.308 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.156e-05/2.229, allocations: 0 / 1.308 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.04406/2.273, allocations: 20.42 MB / 1.328 GB, free: 4.797 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.356e-05/2.273, allocations: 136 kB / 1.328 GB, free: 4.648 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005155/2.278, allocations: 3.203 MB / 1.331 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0009694/2.279, allocations: 106.2 kB / 1.332 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001613/2.281, allocations: 2.04 MB / 1.334 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.001994/2.283, allocations: 1.608 MB / 1.335 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/2.285, allocations: 0.7463 MB / 1.336 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.85e-05/2.285, allocations: 301.1 kB / 1.336 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004233/2.29, allocations: 2.553 MB / 1.339 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004796/2.295, allocations: 2.819 MB / 1.341 GB, free: 7.27 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.306, allocations: 5.791 MB / 1.347 GB, free: 1.469 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.043e-05/2.306, allocations: 0 / 1.347 GB, free: 1.469 MB / 0.9044 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.02105/2.327, allocations: 7.383 MB / 1.354 GB, free: 10.1 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/2.327, allocations: 8 kB / 1.354 GB, free: 10.09 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/2.327, allocations: 0 / 1.354 GB, free: 10.09 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007072/2.334, allocations: 1.76 MB / 1.356 GB, free: 8.312 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/2.338, allocations: 0.7133 MB / 1.357 GB, free: 7.633 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/2.353, allocations: 12.2 MB / 1.369 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003362/2.356, allocations: 113.5 kB / 1.369 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/2.358, allocations: 262.1 kB / 1.369 GB, free: 10.71 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.004333/2.362, allocations: 1.283 MB / 1.37 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002222/2.364, allocations: 470.1 kB / 1.371 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02327/2.387, allocations: 11.05 MB / 1.381 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001917/2.388, allocations: 48 kB / 1.381 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.213e-05/2.388, allocations: 8 kB / 1.381 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.519e-05/2.388, allocations: 23.91 kB / 1.382 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03257/2.42, allocations: 15.31 MB / 1.396 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-05/2.421, allocations: 4 kB / 1.396 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003167/2.424, allocations: 0.6855 MB / 1.397 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007443/2.431, allocations: 1.799 MB / 1.399 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00142/2.433, allocations: 185.7 kB / 1.399 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/2.448, allocations: 12.22 MB / 1.411 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/2.448, allocations: 4 kB / 1.411 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02664/2.475, allocations: 11.78 MB / 1.423 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/2.476, allocations: 499.1 kB / 1.423 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001773/2.478, allocations: 96.05 kB / 1.423 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/2.481, allocations: 121.5 kB / 1.423 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001237/2.482, allocations: 364.8 kB / 1.424 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009914/2.483, allocations: 254.2 kB / 1.424 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.004377/2.488, allocations: 2.286 MB / 1.426 GB, free: 124 kB / 0.9825 GB Notification: Performance of sort global known variables: time 4.51e-07/2.488, allocations: 0 / 1.426 GB, free: 124 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.01257/2.5, allocations: 3.527 MB / 1.429 GB, free: 12.6 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.01235/2.513, allocations: 4.008 MB / 1.433 GB, free: 8.953 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02589/2.539, allocations: 9.687 MB / 1.443 GB, free: 15.33 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/2.539, allocations: 0 / 1.443 GB, free: 15.33 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00924/2.548, allocations: 4.209 MB / 1.447 GB, free: 11.18 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009911/2.558, allocations: 1.64 MB / 1.449 GB, free: 9.629 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/2.581, allocations: 11.45 MB / 1.46 GB, free: 14.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00413/2.586, allocations: 3.312 MB / 1.463 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.006762/2.592, allocations: 2.892 MB / 1.466 GB, free: 8.102 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/2.594, allocations: 0.4992 MB / 1.466 GB, free: 7.602 MB / 1.029 GB Notification: Performance of SimCode: time 9.62e-07/2.594, allocations: 0 / 1.466 GB, free: 7.602 MB / 1.029 GB Notification: Performance of Templates: time 0.4561/3.05, allocations: 150.2 MB / 1.613 GB, free: 0.5286 GB / 1.045 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches