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) 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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007092/0.007092, allocations: 102.8 kB / 15.74 MB, free: 6.496 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.001708/0.001708, allocations: 196.6 kB / 16.68 MB, free: 6.375 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.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7958/0.7958, allocations: 93.71 MB / 384.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 75.88 kB / 0.52 GB, free: 6.258 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1641, allocations: 68.27 MB / 0.5866 GB, free: 1.91 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.547/1.711, allocations: 0.5572 GB / 1.144 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.7114/2.422, allocations: 48.31 MB / 1.191 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006472/2.429, allocations: 223.9 kB / 1.191 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01133/2.44, allocations: 3.943 MB / 1.195 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.05997/2.5, allocations: 18.84 MB / 1.213 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.01809/2.519, allocations: 6.418 MB / 1.22 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01577/2.534, allocations: 9.247 MB / 1.229 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004873/2.539, allocations: 2.735 MB / 1.231 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01191/2.551, allocations: 4.572 MB / 1.236 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008721/2.56, allocations: 3.839 MB / 1.24 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002746/2.563, allocations: 0.602 MB / 1.24 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08314/2.646, allocations: 36.05 MB / 1.275 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.004407/2.65, allocations: 1.929 MB / 1.277 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00854/2.659, allocations: 3.349 MB / 1.281 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.06945/2.728, allocations: 23 MB / 1.303 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/2.728, allocations: 0 / 1.303 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.335e-06/2.728, allocations: 0 / 1.303 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003191/2.729, allocations: 0 / 1.303 GB, free: 7.125 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.0304/2.759, allocations: 10.36 MB / 1.313 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/2.759, allocations: 12.03 kB / 1.313 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002333/2.762, allocations: 0.6042 MB / 1.314 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002522/2.764, allocations: 0.6832 MB / 1.314 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/2.774, allocations: 4.465 MB / 1.319 GB, free: 9.633 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/2.775, allocations: 327.2 kB / 1.319 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001319/2.776, allocations: 450.6 kB / 1.32 GB, free: 9.156 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01672/2.793, allocations: 7.326 MB / 1.327 GB, free: 4.316 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/2.793, allocations: 2.344 kB / 1.327 GB, free: 4.316 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007938/2.794, allocations: 177.7 kB / 1.327 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005873/2.794, allocations: 416.3 kB / 1.327 GB, free: 3.941 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01589/2.81, allocations: 8.307 MB / 1.335 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05427/2.865, allocations: 30.96 MB / 1.366 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00874/2.873, allocations: 4.342 MB / 1.37 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006609/2.88, allocations: 3.532 MB / 1.373 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008336/2.888, allocations: 8.105 MB / 1.381 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/2.889, allocations: 89.19 kB / 1.381 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 2.507e-05/2.889, allocations: 4 kB / 1.381 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.05326/2.942, allocations: 20.57 MB / 1.401 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/2.942, allocations: 133 kB / 1.402 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006109/2.948, allocations: 3.254 MB / 1.405 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.001456/2.95, allocations: 102.2 kB / 1.405 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.002174/2.952, allocations: 2.092 MB / 1.407 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.003209/2.955, allocations: 1.682 MB / 1.408 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002109/2.957, allocations: 0.7426 MB / 1.409 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001399/2.957, allocations: 301.1 kB / 1.409 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004682/2.962, allocations: 2.557 MB / 1.412 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005781/2.968, allocations: 2.811 MB / 1.415 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/2.98, allocations: 5.796 MB / 1.42 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-05/2.98, allocations: 3.938 kB / 1.42 GB, free: 2.012 MB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01721/2.997, allocations: 7.414 MB / 1.428 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/2.997, allocations: 6.062 kB / 1.428 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/2.997, allocations: 0 / 1.428 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007406/3.005, allocations: 1.746 MB / 1.429 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/3.008, allocations: 0.7138 MB / 1.43 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/3.025, allocations: 12.21 MB / 1.442 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/3.028, allocations: 110 kB / 1.442 GB, free: 11.49 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/3.03, allocations: 261.3 kB / 1.442 GB, free: 11.24 MB / 1.014 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.00362/3.033, allocations: 1.28 MB / 1.444 GB, free: 9.996 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00183/3.035, allocations: 492.8 kB / 1.444 GB, free: 9.512 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02406/3.059, allocations: 11.05 MB / 1.455 GB, free: 14.6 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001985/3.059, allocations: 48 kB / 1.455 GB, free: 14.55 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.145e-05/3.059, allocations: 14.44 kB / 1.455 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001105/3.06, allocations: 23.92 kB / 1.455 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0351/3.095, allocations: 15.27 MB / 1.47 GB, free: 15.29 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-05/3.095, allocations: 0 / 1.47 GB, free: 15.29 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003316/3.098, allocations: 0.6877 MB / 1.47 GB, free: 14.63 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007534/3.106, allocations: 1.787 MB / 1.472 GB, free: 12.82 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001236/3.107, allocations: 175.7 kB / 1.472 GB, free: 12.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01635/3.123, allocations: 12.23 MB / 1.484 GB, free: 68 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/3.123, allocations: 3.938 kB / 1.484 GB, free: 64 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02642/3.15, allocations: 11.83 MB / 1.496 GB, free: 4.227 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/3.152, allocations: 0.5173 MB / 1.496 GB, free: 3.688 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001995/3.154, allocations: 93.55 kB / 1.496 GB, free: 3.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003328/3.157, allocations: 107.3 kB / 1.497 GB, free: 3.5 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/3.158, allocations: 370.1 kB / 1.497 GB, free: 3.145 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008775/3.159, allocations: 261.6 kB / 1.497 GB, free: 2.891 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.004484/3.164, allocations: 2.315 MB / 1.499 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.2e-07/3.164, allocations: 0 / 1.499 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.01411/3.178, allocations: 3.563 MB / 1.503 GB, free: 13.01 MB / 1.076 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.04036/3.218, allocations: 16.56 MB / 1.519 GB, free: 12.8 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.01597/3.234, allocations: 7.126 MB / 1.526 GB, free: 5.699 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/3.234, allocations: 0 / 1.526 GB, free: 5.699 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.009792/3.244, allocations: 4.221 MB / 1.53 GB, free: 1.547 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01285/3.257, allocations: 1.621 MB / 1.532 GB, free: 0 / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/3.361, allocations: 45.63 MB / 1.576 GB, free: 2.312 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3546/3.715, allocations: 3.322 MB / 1.58 GB, free: 0.6305 GB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.008845/3.724, allocations: 2.896 MB / 1.582 GB, free: 0.6305 GB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005324/3.73, allocations: 2.534 MB / 1.585 GB, free: 0.6305 GB / 1.139 GB Notification: Performance of SimCode: time 2.124e-06/3.73, allocations: 0 / 1.585 GB, free: 0.6305 GB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3088/4.038, allocations: 200 MB / 1.78 GB, free: 499.1 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.8/32.84, allocations: 12 kB / 1.78 GB, free: 499.1 MB / 1.139 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestDynamicTopology.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestDynamicTopology_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches