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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=1000,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=1000,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") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006966/0.006966, allocations: 101.2 kB / 15.73 MB, free: 6.062 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.001835/0.001835, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7634/0.7634, allocations: 93.69 MB / 384.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002374/0.002374, allocations: 83.86 kB / 0.5205 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2915, allocations: 68.25 MB / 0.5871 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.296/1.588, allocations: 0.5572 GB / 1.144 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.05009/1.638, allocations: 48.32 MB / 1.191 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006686/1.645, allocations: 224.2 kB / 1.192 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0114/1.656, allocations: 3.945 MB / 1.196 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.05067/1.707, allocations: 18.84 MB / 1.214 GB, free: 13.53 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.01755/1.724, allocations: 6.416 MB / 1.22 GB, free: 7.836 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01428/1.739, allocations: 9.243 MB / 1.229 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004383/1.743, allocations: 2.731 MB / 1.232 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01214/1.755, allocations: 4.571 MB / 1.236 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006601/1.762, allocations: 3.843 MB / 1.24 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001521/1.763, allocations: 0.6016 MB / 1.241 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07076/1.834, allocations: 36.04 MB / 1.276 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003799/1.838, allocations: 1.93 MB / 1.278 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.006952/1.845, allocations: 3.349 MB / 1.281 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.06086/1.906, allocations: 23 MB / 1.304 GB, free: 7.176 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/1.906, allocations: 4 kB / 1.304 GB, free: 7.172 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.633e-06/1.906, allocations: 0 / 1.304 GB, free: 7.172 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002043/1.906, allocations: 0 / 1.304 GB, free: 7.172 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.02696/1.933, allocations: 10.35 MB / 1.314 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/1.933, allocations: 8.031 kB / 1.314 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/1.935, allocations: 0.6871 MB / 1.314 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009102/1.944, allocations: 4.461 MB / 1.319 GB, free: 7.762 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/1.944, allocations: 327.1 kB / 1.319 GB, free: 7.453 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/1.946, allocations: 454.3 kB / 1.319 GB, free: 7.02 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01464/1.96, allocations: 7.337 MB / 1.327 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.327e-05/1.96, allocations: 0 / 1.327 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005005/1.961, allocations: 173.8 kB / 1.327 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005605/1.961, allocations: 412.8 kB / 1.327 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/1.977, allocations: 8.305 MB / 1.335 GB, free: 6.734 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05281/2.03, allocations: 30.96 MB / 1.365 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008209/2.038, allocations: 4.341 MB / 1.37 GB, free: 1.012 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005938/2.044, allocations: 3.539 MB / 1.373 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008167/2.052, allocations: 8.105 MB / 1.381 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.034e-05/2.052, allocations: 82.56 kB / 1.381 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.304e-05/2.052, allocations: 0 / 1.381 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.3211/2.373, allocations: 20.58 MB / 1.401 GB, free: 476.2 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/2.374, allocations: 128.5 kB / 1.401 GB, free: 476.1 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/2.377, allocations: 3.247 MB / 1.405 GB, free: 475 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0008038/2.378, allocations: 101.2 kB / 1.405 GB, free: 474.9 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001197/2.379, allocations: 2.091 MB / 1.407 GB, free: 473.4 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001546/2.381, allocations: 1.683 MB / 1.408 GB, free: 472.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/2.382, allocations: 0.7467 MB / 1.409 GB, free: 472 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 5.115e-05/2.382, allocations: 301.1 kB / 1.409 GB, free: 471.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00316/2.385, allocations: 2.553 MB / 1.412 GB, free: 470.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003777/2.389, allocations: 2.815 MB / 1.415 GB, free: 469.5 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007571/2.397, allocations: 5.799 MB / 1.42 GB, free: 466.9 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/2.397, allocations: 0 / 1.42 GB, free: 466.9 MB / 0.9512 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01131/2.408, allocations: 7.409 MB / 1.428 GB, free: 463.7 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/2.408, allocations: 7.812 kB / 1.428 GB, free: 463.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/2.408, allocations: 0 / 1.428 GB, free: 463.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00624/2.414, allocations: 1.744 MB / 1.429 GB, free: 463.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002711/2.417, allocations: 0.7098 MB / 1.43 GB, free: 463.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/2.429, allocations: 12.22 MB / 1.442 GB, free: 454.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002941/2.432, allocations: 112.4 kB / 1.442 GB, free: 454.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007825/2.432, allocations: 264.3 kB / 1.442 GB, free: 454.2 MB / 0.9512 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.002174/2.435, allocations: 1.278 MB / 1.443 GB, free: 453.6 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/2.436, allocations: 0.492 MB / 1.444 GB, free: 453.3 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01622/2.452, allocations: 11.02 MB / 1.455 GB, free: 446.4 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001047/2.452, allocations: 51.28 kB / 1.455 GB, free: 446.3 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-05/2.452, allocations: 8 kB / 1.455 GB, free: 446.3 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-05/2.452, allocations: 27.91 kB / 1.455 GB, free: 446.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/2.476, allocations: 15.28 MB / 1.47 GB, free: 431 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-05/2.476, allocations: 4 kB / 1.47 GB, free: 431 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002653/2.479, allocations: 0.6788 MB / 1.47 GB, free: 430.3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006206/2.485, allocations: 1.794 MB / 1.472 GB, free: 428.5 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009273/2.486, allocations: 175.5 kB / 1.472 GB, free: 428.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/2.497, allocations: 12.23 MB / 1.484 GB, free: 415.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/2.497, allocations: 4 kB / 1.484 GB, free: 415.8 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01666/2.514, allocations: 11.82 MB / 1.496 GB, free: 403.9 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/2.515, allocations: 0.5202 MB / 1.496 GB, free: 403.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009274/2.516, allocations: 99.58 kB / 1.496 GB, free: 403.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/2.518, allocations: 111.3 kB / 1.496 GB, free: 403.2 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006355/2.519, allocations: 371.3 kB / 1.497 GB, free: 402.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005319/2.519, allocations: 255.9 kB / 1.497 GB, free: 402.6 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002705/2.522, allocations: 2.311 MB / 1.499 GB, free: 400.3 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.5e-07/2.522, allocations: 0 / 1.499 GB, free: 400.3 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.008579/2.53, allocations: 3.559 MB / 1.503 GB, free: 397.2 MB / 0.9512 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.008888/2.539, allocations: 4.056 MB / 1.507 GB, free: 394.4 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01119/2.551, allocations: 7.134 MB / 1.514 GB, free: 387.2 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/2.551, allocations: 0 / 1.514 GB, free: 387.2 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.006582/2.557, allocations: 4.222 MB / 1.518 GB, free: 383 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007685/2.565, allocations: 1.64 MB / 1.519 GB, free: 381.5 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/2.582, allocations: 11.54 MB / 1.531 GB, free: 370.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00241/2.584, allocations: 3.324 MB / 1.534 GB, free: 366.9 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.006161/2.59, allocations: 2.893 MB / 1.537 GB, free: 364.1 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/2.592, allocations: 0.5031 MB / 1.537 GB, free: 363.6 MB / 0.9512 GB Notification: Performance of SimCode: time 1.162e-06/2.592, allocations: 0 / 1.537 GB, free: 363.6 MB / 0.9512 GB Notification: Performance of Templates: time 0.1695/2.762, allocations: 148.8 MB / 1.683 GB, free: 215.4 MB / 0.9512 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] Reference file matches