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.001022/0.001022, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001526/0.001527, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 223.3 MB / 240 MB, free: 5.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.8948/0.8948, allocations: 89.63 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005368/0.0005371, allocations: 13.25 kB / 460 MB, free: 24.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1986, allocations: 68.83 MB / 0.5164 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.389/1.587, allocations: 0.5131 GB / 1.03 GB, free: 1.414 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.05751/1.645, allocations: 44.62 MB / 1.073 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00458/1.649, allocations: 55.69 kB / 1.073 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.008441/1.658, allocations: 2.482 MB / 1.076 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.04359/1.701, allocations: 13.98 MB / 1.089 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.5915/2.293, allocations: 4.314 MB / 1.093 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01649/2.31, allocations: 10.18 MB / 1.103 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004028/2.314, allocations: 1.984 MB / 1.105 GB, free: 26.43 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009518/2.323, allocations: 3.24 MB / 1.108 GB, free: 26.4 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008149/2.331, allocations: 3.205 MB / 1.112 GB, free: 26.4 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.002105/2.333, allocations: 206.4 kB / 1.112 GB, free: 26.4 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06725/2.401, allocations: 29.05 MB / 1.14 GB, free: 26.38 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.003722/2.404, allocations: 1.396 MB / 1.142 GB, free: 26.38 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.003965/2.408, allocations: 1.042 MB / 1.143 GB, free: 26.34 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.03597/2.444, allocations: 14.19 MB / 1.156 GB, free: 25.67 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/2.444, allocations: 0 / 1.156 GB, free: 25.67 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.367e-06/2.445, allocations: 3 kB / 1.156 GB, free: 25.67 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0003809/2.445, allocations: 0 / 1.156 GB, free: 25.67 MB / 0.7481 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.0267/2.472, allocations: 8.055 MB / 1.164 GB, free: 21.69 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/2.472, allocations: 9.062 kB / 1.164 GB, free: 21.69 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00243/2.474, allocations: 0.5325 MB / 1.165 GB, free: 21.42 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00544/2.48, allocations: 2.412 MB / 1.167 GB, free: 20.48 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000315/2.48, allocations: 318.1 kB / 1.167 GB, free: 20.46 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002394/2.482, allocations: 441.3 kB / 1.168 GB, free: 20.45 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01666/2.499, allocations: 7.196 MB / 1.175 GB, free: 18.93 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-05/2.499, allocations: 0 / 1.175 GB, free: 18.93 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006189/2.5, allocations: 172.6 kB / 1.175 GB, free: 18.93 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005527/2.5, allocations: 409.7 kB / 1.175 GB, free: 18.86 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/2.513, allocations: 8.186 MB / 1.183 GB, free: 16.33 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04342/2.556, allocations: 27.33 MB / 1.21 GB, free: 8.547 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008517/2.565, allocations: 4.256 MB / 1.214 GB, free: 6.039 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006873/2.572, allocations: 3.508 MB / 1.218 GB, free: 3.984 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008065/2.58, allocations: 8.125 MB / 1.226 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000138/2.58, allocations: 79.38 kB / 1.226 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=475): time 2.814e-05/2.58, allocations: 0.5469 kB / 1.226 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=479): time 0.04959/2.63, allocations: 19.73 MB / 1.245 GB, free: 12.6 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/2.63, allocations: 129.1 kB / 1.245 GB, free: 12.46 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/2.633, allocations: 2.097 MB / 1.247 GB, free: 10.92 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.001374/2.635, allocations: 99.14 kB / 1.247 GB, free: 10.87 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.001294/2.636, allocations: 1.522 MB / 1.249 GB, free: 9.953 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.002491/2.639, allocations: 1.599 MB / 1.25 GB, free: 8.578 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004341/2.639, allocations: 77.52 kB / 1.25 GB, free: 8.562 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0003661/2.639, allocations: 465.9 kB / 1.251 GB, free: 8.164 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003987/2.643, allocations: 2.534 MB / 1.253 GB, free: 6.664 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004547/2.648, allocations: 2.794 MB / 1.256 GB, free: 4.965 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005599/2.654, allocations: 2.88 MB / 1.259 GB, free: 3.402 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.28e-05/2.654, allocations: 0 / 1.259 GB, free: 3.402 MB / 0.795 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.0183/2.672, allocations: 7.394 MB / 1.266 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/2.672, allocations: 8 kB / 1.266 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/2.672, allocations: 4 kB / 1.266 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006902/2.679, allocations: 1.787 MB / 1.268 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003684/2.683, allocations: 0.7075 MB / 1.269 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/2.697, allocations: 11.49 MB / 1.28 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003939/2.701, allocations: 321 kB / 1.28 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/2.703, allocations: 265.4 kB / 1.28 GB, free: 3.109 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.004644/2.708, allocations: 1.122 MB / 1.281 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001677/2.709, allocations: 352.2 kB / 1.282 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0249/2.734, allocations: 10.98 MB / 1.292 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001685/2.734, allocations: 48 kB / 1.293 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-05/2.734, allocations: 12 kB / 1.293 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/2.735, allocations: 27.91 kB / 1.293 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03503/2.77, allocations: 14.87 MB / 1.307 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.439e-05/2.77, allocations: 0.6562 kB / 1.307 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003588/2.773, allocations: 0.6876 MB / 1.308 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007347/2.781, allocations: 1.833 MB / 1.31 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001657/2.782, allocations: 181 kB / 1.31 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/2.798, allocations: 11.52 MB / 1.321 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/2.798, allocations: 1.969 kB / 1.321 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02311/2.821, allocations: 11.56 MB / 1.332 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/2.822, allocations: 426.3 kB / 1.333 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001125/2.824, allocations: 87.19 kB / 1.333 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/2.826, allocations: 321.3 kB / 1.333 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007695/2.827, allocations: 367.5 kB / 1.333 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006958/2.828, allocations: 252 kB / 1.334 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00246/2.83, allocations: 1.526 MB / 1.335 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.8e-07/2.83, allocations: 0.6562 kB / 1.335 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.01356/2.844, allocations: 3.443 MB / 1.338 GB, free: 9.488 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,1 5,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01327/2.857, allocations: 4.042 MB / 1.342 GB, free: 5.934 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01581/2.873, allocations: 7.069 MB / 1.349 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/2.873, allocations: 0.5469 kB / 1.349 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.009842/2.883, allocations: 4.155 MB / 1.353 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/2.894, allocations: 1.407 MB / 1.355 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02655/2.921, allocations: 11.71 MB / 1.366 GB, free: 3.441 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003723/2.924, allocations: 2.937 MB / 1.369 GB, free: 0.7148 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.007271/2.932, allocations: 2.759 MB / 1.372 GB, free: 14.16 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001609/2.933, allocations: 444.4 kB / 1.372 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of SimCode: time 2.725e-06/2.933, allocations: 0 / 1.372 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of Templates: time 0.5714/3.505, allocations: 139.3 MB / 1.508 GB, free: 378.1 MB / 0.92 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