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.001473/0.001473, allocations: 103.7 kB / 15.98 MB, free: 6.348 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.001298/0.001298, allocations: 193.2 kB / 16.91 MB, free: 6.188 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.285/1.285, allocations: 222.9 MB / 240.6 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6487/0.6487, allocations: 91.19 MB / 381.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 80.16 kB / 460.5 MB, free: 9.355 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1211, allocations: 67.69 MB / 0.5158 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.465/1.586, allocations: 0.5559 GB / 1.072 GB, free: 164 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.05155/1.638, allocations: 48.54 MB / 1.119 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006462/1.644, allocations: 246 kB / 1.119 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.009055/1.654, allocations: 3.624 MB / 1.123 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.04482/1.698, allocations: 17.27 MB / 1.14 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0157/1.714, allocations: 5.975 MB / 1.146 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0126/1.727, allocations: 9.155 MB / 1.155 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004068/1.731, allocations: 2.727 MB / 1.157 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01002/1.741, allocations: 4.61 MB / 1.162 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006915/1.748, allocations: 4.048 MB / 1.166 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.002266/1.75, allocations: 0.6093 MB / 1.166 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06202/1.812, allocations: 37.6 MB / 1.203 GB, free: 5.258 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003197/1.815, allocations: 1.938 MB / 1.205 GB, free: 3.34 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.006463/1.822, allocations: 3.331 MB / 1.208 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.03137/1.853, allocations: 16.24 MB / 1.224 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.853, allocations: 0 / 1.224 GB, free: 0.7227 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/1.853, allocations: 4 kB / 1.224 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.000245/1.854, allocations: 0 / 1.224 GB, free: 0.7188 MB / 0.7794 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.0244/1.878, allocations: 9.979 MB / 1.234 GB, free: 6.82 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/1.878, allocations: 8.031 kB / 1.234 GB, free: 6.812 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/1.88, allocations: 0.6523 MB / 1.234 GB, free: 6.152 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007117/1.887, allocations: 4.02 MB / 1.238 GB, free: 2.188 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/1.887, allocations: 329 kB / 1.239 GB, free: 1.875 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/1.888, allocations: 447 kB / 1.239 GB, free: 1.449 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/1.901, allocations: 7.323 MB / 1.246 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.043e-05/1.901, allocations: 9.812 kB / 1.246 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004647/1.902, allocations: 180.9 kB / 1.246 GB, free: 9.902 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004743/1.902, allocations: 412.8 kB / 1.247 GB, free: 9.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/1.915, allocations: 8.3 MB / 1.255 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04104/1.956, allocations: 30.94 MB / 1.285 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006745/1.963, allocations: 4.343 MB / 1.289 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00479/1.968, allocations: 3.532 MB / 1.293 GB, free: 7.965 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005846/1.973, allocations: 8.112 MB / 1.301 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.052e-05/1.974, allocations: 78.56 kB / 1.301 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=476): time 1.118e-05/1.974, allocations: 0 / 1.301 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of matching and sorting (n=480): time 0.03936/2.013, allocations: 20.44 MB / 1.321 GB, free: 9.297 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/2.013, allocations: 129 kB / 1.321 GB, free: 9.152 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004407/2.017, allocations: 3.21 MB / 1.324 GB, free: 5.926 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000927/2.018, allocations: 102 kB / 1.324 GB, free: 5.824 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001402/2.02, allocations: 2.04 MB / 1.326 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001995/2.022, allocations: 1.604 MB / 1.328 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/2.023, allocations: 0.7464 MB / 1.328 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 8.384e-05/2.023, allocations: 301.1 kB / 1.329 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003781/2.027, allocations: 2.561 MB / 1.331 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004509/2.032, allocations: 2.811 MB / 1.334 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008891/2.041, allocations: 5.793 MB / 1.34 GB, free: 5.969 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.978e-06/2.041, allocations: 0 / 1.34 GB, free: 5.969 MB / 0.9044 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01259/2.053, allocations: 7.382 MB / 1.347 GB, free: 14.56 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/2.053, allocations: 4 kB / 1.347 GB, free: 14.56 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/2.053, allocations: 7.922 kB / 1.347 GB, free: 14.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006785/2.06, allocations: 1.756 MB / 1.348 GB, free: 12.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003857/2.064, allocations: 0.7139 MB / 1.349 GB, free: 12.06 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/2.078, allocations: 12.2 MB / 1.361 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/2.082, allocations: 320.8 kB / 1.361 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/2.083, allocations: 266.6 kB / 1.362 GB, free: 14.89 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.002801/2.085, allocations: 1.274 MB / 1.363 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/2.087, allocations: 470 kB / 1.363 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01925/2.106, allocations: 11.06 MB / 1.374 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/2.106, allocations: 48 kB / 1.374 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.138e-05/2.106, allocations: 8 kB / 1.374 GB, free: 2.172 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.066e-05/2.106, allocations: 27.91 kB / 1.374 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2598/2.366, allocations: 15.3 MB / 1.389 GB, free: 0.4892 GB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/2.366, allocations: 0.6875 kB / 1.389 GB, free: 0.4892 GB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/2.369, allocations: 0.6837 MB / 1.39 GB, free: 0.4892 GB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006732/2.376, allocations: 1.792 MB / 1.392 GB, free: 0.4891 GB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009143/2.377, allocations: 182.4 kB / 1.392 GB, free: 0.4891 GB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/2.389, allocations: 12.24 MB / 1.404 GB, free: 494 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/2.389, allocations: 5.531 kB / 1.404 GB, free: 494 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02089/2.41, allocations: 11.78 MB / 1.415 GB, free: 489.1 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/2.411, allocations: 0.4908 MB / 1.416 GB, free: 489 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/2.412, allocations: 92.64 kB / 1.416 GB, free: 488.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/2.415, allocations: 319.8 kB / 1.416 GB, free: 488.9 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008981/2.416, allocations: 366.5 kB / 1.416 GB, free: 488.8 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006116/2.417, allocations: 257.9 kB / 1.417 GB, free: 488.8 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.003709/2.421, allocations: 2.291 MB / 1.419 GB, free: 488 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.11e-07/2.421, allocations: 0 / 1.419 GB, free: 488 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.01187/2.433, allocations: 3.525 MB / 1.422 GB, free: 487.4 MB / 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 {(2,4), (2,4), (1,5), (2,4), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01186/2.444, allocations: 4.008 MB / 1.426 GB, free: 487.1 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02145/2.466, allocations: 9.689 MB / 1.436 GB, free: 484.2 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/2.466, allocations: 3.969 kB / 1.436 GB, free: 484.2 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.006904/2.473, allocations: 4.208 MB / 1.44 GB, free: 482.6 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007601/2.48, allocations: 1.635 MB / 1.441 GB, free: 482.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/2.498, allocations: 13.73 MB / 1.455 GB, free: 475.1 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002345/2.5, allocations: 3.288 MB / 1.458 GB, free: 474 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002342/2.503, allocations: 0.5729 MB / 1.459 GB, free: 473.9 MB / 0.9356 GB Notification: Performance of SimCode: time 1.072e-06/2.503, allocations: 0 / 1.459 GB, free: 473.9 MB / 0.9356 GB Notification: Performance of Templates: time 0.2173/2.72, allocations: 307.7 MB / 1.759 GB, free: 174.8 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