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.001093/0.001093, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.007756/0.007756, allocations: 174.7 kB / 16.27 MB, free: 6.613 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7161/0.7161, allocations: 91.32 MB / 382.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.000374, allocations: 14.33 kB / 462.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1147, allocations: 69.21 MB / 0.5194 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.569/1.683, allocations: 0.5587 GB / 1.078 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.06156/1.745, allocations: 48.96 MB / 1.126 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007667/1.753, allocations: 230.8 kB / 1.126 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.01235/1.765, allocations: 3.647 MB / 1.13 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.06405/1.829, allocations: 16.53 MB / 1.146 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01894/1.848, allocations: 5.78 MB / 1.152 GB, free: 376 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.02011/1.868, allocations: 13.62 MB / 1.165 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003603/1.872, allocations: 2.41 MB / 1.167 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008331/1.88, allocations: 3.722 MB / 1.171 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006576/1.887, allocations: 3.487 MB / 1.174 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001352/1.888, allocations: 203.1 kB / 1.174 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0761/1.964, allocations: 40.18 MB / 1.214 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.003084/1.968, allocations: 1.459 MB / 1.215 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.006045/1.974, allocations: 2.833 MB / 1.218 GB, free: 7.445 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.06752/2.041, allocations: 23.38 MB / 1.241 GB, free: 3.801 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/2.041, allocations: 4 kB / 1.241 GB, free: 3.797 MB / 0.7637 GB Notification: Performance of FrontEnd: time 4.158e-06/2.041, allocations: 4 kB / 1.241 GB, free: 3.793 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0003202/2.042, allocations: 0 / 1.241 GB, free: 3.793 MB / 0.7637 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.02477/2.066, allocations: 8.836 MB / 1.249 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/2.066, allocations: 8.031 kB / 1.249 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002489/2.069, allocations: 0.6491 MB / 1.25 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008276/2.077, allocations: 4.019 MB / 1.254 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/2.078, allocations: 329.4 kB / 1.254 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/2.079, allocations: 445 kB / 1.255 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/2.092, allocations: 7.336 MB / 1.262 GB, free: 14.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.773e-05/2.092, allocations: 0 / 1.262 GB, free: 14.27 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004335/2.092, allocations: 176.7 kB / 1.262 GB, free: 14.11 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005186/2.093, allocations: 412.8 kB / 1.262 GB, free: 13.7 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/2.106, allocations: 8.305 MB / 1.27 GB, free: 5.371 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04505/2.151, allocations: 31 MB / 1.301 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007137/2.158, allocations: 4.338 MB / 1.305 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005412/2.163, allocations: 3.532 MB / 1.308 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007187/2.171, allocations: 8.116 MB / 1.316 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.336e-05/2.171, allocations: 84.41 kB / 1.316 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=476): time 1.163e-05/2.171, allocations: 0 / 1.316 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of matching and sorting (n=480): time 0.04157/2.212, allocations: 20.51 MB / 1.336 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/2.212, allocations: 125.1 kB / 1.337 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004607/2.217, allocations: 3.214 MB / 1.34 GB, free: 9.977 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0008118/2.218, allocations: 101.3 kB / 1.34 GB, free: 9.875 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001627/2.219, allocations: 2.044 MB / 1.342 GB, free: 7.812 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.001826/2.221, allocations: 1.597 MB / 1.343 GB, free: 6.234 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005738/2.222, allocations: 302.1 kB / 1.344 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001176/2.222, allocations: 309.1 kB / 1.344 GB, free: 5.633 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004052/2.226, allocations: 2.553 MB / 1.346 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004268/2.23, allocations: 2.815 MB / 1.349 GB, free: 268 kB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008913/2.239, allocations: 5.793 MB / 1.355 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/2.239, allocations: 0 / 1.355 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01308/2.252, allocations: 7.384 MB / 1.362 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/2.252, allocations: 6.5 kB / 1.362 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/2.253, allocations: 4 kB / 1.362 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007238/2.26, allocations: 1.793 MB / 1.364 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003363/2.263, allocations: 0.7139 MB / 1.365 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/2.278, allocations: 11.52 MB / 1.376 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004797/2.283, allocations: 330.5 kB / 1.376 GB, free: 4.293 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/2.284, allocations: 263.4 kB / 1.376 GB, free: 4.039 MB / 0.9044 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.00327/2.287, allocations: 1.27 MB / 1.378 GB, free: 2.766 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/2.288, allocations: 466.2 kB / 1.378 GB, free: 2.305 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02099/2.309, allocations: 11.08 MB / 1.389 GB, free: 7.305 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001472/2.309, allocations: 51.94 kB / 1.389 GB, free: 7.254 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.679e-05/2.309, allocations: 16 kB / 1.389 GB, free: 7.238 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-05/2.309, allocations: 23.91 kB / 1.389 GB, free: 7.215 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02841/2.338, allocations: 15.34 MB / 1.404 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.774e-05/2.338, allocations: 4 kB / 1.404 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/2.341, allocations: 0.6789 MB / 1.405 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007222/2.348, allocations: 1.84 MB / 1.406 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006156/2.349, allocations: 181 kB / 1.407 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2916/2.64, allocations: 11.54 MB / 1.418 GB, free: 0.5024 GB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.64, allocations: 1.75 kB / 1.418 GB, free: 0.5024 GB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/2.659, allocations: 11.81 MB / 1.429 GB, free: 0.4985 GB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/2.661, allocations: 0.5177 MB / 1.43 GB, free: 0.4984 GB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007513/2.661, allocations: 92.64 kB / 1.43 GB, free: 0.4983 GB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/2.664, allocations: 322.5 kB / 1.43 GB, free: 0.4983 GB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008385/2.665, allocations: 360.2 kB / 1.431 GB, free: 0.4982 GB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005927/2.665, allocations: 265.2 kB / 1.431 GB, free: 0.4982 GB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.00335/2.669, allocations: 2.29 MB / 1.433 GB, free: 0.4974 GB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/2.669, allocations: 0 / 1.433 GB, free: 0.4974 GB / 0.9356 GB Notification: Performance of remove unused functions: time 0.01112/2.68, allocations: 3.518 MB / 1.437 GB, free: 0.4969 GB / 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.01026/2.69, allocations: 4.153 MB / 1.441 GB, free: 0.4963 GB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01159/2.702, allocations: 7.108 MB / 1.448 GB, free: 0.4936 GB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/2.702, allocations: 0 / 1.448 GB, free: 0.4936 GB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.006654/2.709, allocations: 4.199 MB / 1.452 GB, free: 0.4918 GB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008491/2.717, allocations: 1.518 MB / 1.453 GB, free: 0.4914 GB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/2.736, allocations: 13.72 MB / 1.467 GB, free: 496.2 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00244/2.738, allocations: 3.31 MB / 1.47 GB, free: 495.1 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.005982/2.744, allocations: 2.893 MB / 1.473 GB, free: 494.8 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/2.746, allocations: 0.502 MB / 1.473 GB, free: 494.8 MB / 0.9356 GB Notification: Performance of SimCode: time 6.21e-07/2.746, allocations: 2.812 kB / 1.473 GB, free: 494.8 MB / 0.9356 GB Notification: Performance of Templates: time 0.1801/2.926, allocations: 145 MB / 1.615 GB, free: 358.5 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches