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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_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.00596/0.00596, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.001493/0.001493, allocations: 185.9 kB / 16.67 MB, free: 5.516 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7125/0.7125, allocations: 91.19 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 75.88 kB / 0.5164 GB, free: 4.586 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3273, allocations: 67.69 MB / 0.5825 GB, free: 13.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.354/1.682, allocations: 0.5571 GB / 1.14 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.04847/1.73, allocations: 48.27 MB / 1.187 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006076/1.736, allocations: 217.3 kB / 1.187 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01022/1.746, allocations: 3.936 MB / 1.191 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.04755/1.794, allocations: 18.8 MB / 1.209 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01839/1.813, allocations: 6.414 MB / 1.215 GB, free: 11.41 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01312/1.826, allocations: 9.147 MB / 1.224 GB, free: 2.547 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00466/1.83, allocations: 2.721 MB / 1.227 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008919/1.839, allocations: 4.635 MB / 1.232 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006261/1.846, allocations: 3.832 MB / 1.235 GB, free: 7.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002293/1.848, allocations: 0.6016 MB / 1.236 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0712/1.919, allocations: 36.04 MB / 1.271 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003308/1.923, allocations: 1.934 MB / 1.273 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.008739/1.931, allocations: 3.334 MB / 1.276 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0625/1.994, allocations: 22.88 MB / 1.299 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.994, allocations: 0 / 1.299 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.473e-06/1.994, allocations: 0 / 1.299 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.000322/1.994, allocations: 0 / 1.299 GB, free: 10.94 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.04392/2.038, allocations: 9.984 MB / 1.308 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.818e-05/2.038, allocations: 8.031 kB / 1.308 GB, free: 1.023 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00303/2.041, allocations: 0.5972 MB / 1.309 GB, free: 436 kB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003857/2.045, allocations: 0.6485 MB / 1.31 GB, free: 15.77 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/2.058, allocations: 4.375 MB / 1.314 GB, free: 11.44 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003504/2.058, allocations: 330.8 kB / 1.314 GB, free: 11.13 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/2.06, allocations: 443 kB / 1.315 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/2.076, allocations: 7.335 MB / 1.322 GB, free: 3.32 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/2.076, allocations: 4 kB / 1.322 GB, free: 3.316 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009694/2.077, allocations: 172.2 kB / 1.322 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005984/2.078, allocations: 416.8 kB / 1.322 GB, free: 2.746 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/2.093, allocations: 8.302 MB / 1.33 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0534/2.146, allocations: 30.9 MB / 1.361 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008997/2.155, allocations: 4.346 MB / 1.365 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006638/2.162, allocations: 3.531 MB / 1.368 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007752/2.17, allocations: 8.118 MB / 1.376 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/2.17, allocations: 78.56 kB / 1.376 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=476): time 1.53e-05/2.17, allocations: 0 / 1.376 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of matching and sorting (n=480): time 0.3624/2.532, allocations: 20.42 MB / 1.396 GB, free: 481.7 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/2.532, allocations: 128.1 kB / 1.396 GB, free: 481.6 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004233/2.537, allocations: 3.208 MB / 1.399 GB, free: 480.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0009669/2.538, allocations: 104.1 kB / 1.4 GB, free: 480.4 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001286/2.539, allocations: 2.043 MB / 1.402 GB, free: 478.8 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.002127/2.541, allocations: 1.6 MB / 1.403 GB, free: 477.5 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/2.543, allocations: 0.7509 MB / 1.404 GB, free: 477.2 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 6.008e-05/2.543, allocations: 301.1 kB / 1.404 GB, free: 476.9 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003354/2.546, allocations: 2.555 MB / 1.407 GB, free: 475.9 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/2.55, allocations: 2.816 MB / 1.409 GB, free: 474.8 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008283/2.558, allocations: 5.79 MB / 1.415 GB, free: 472.1 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/2.558, allocations: 8.906 kB / 1.415 GB, free: 472.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01258/2.571, allocations: 7.38 MB / 1.422 GB, free: 469 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/2.571, allocations: 3.969 kB / 1.422 GB, free: 469 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/2.571, allocations: 0 / 1.422 GB, free: 469 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006558/2.578, allocations: 1.748 MB / 1.424 GB, free: 468.6 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003324/2.581, allocations: 0.7125 MB / 1.425 GB, free: 468.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/2.593, allocations: 12.2 MB / 1.437 GB, free: 459.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/2.596, allocations: 115.6 kB / 1.437 GB, free: 459.6 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008747/2.597, allocations: 262 kB / 1.437 GB, free: 459.5 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.002912/2.6, allocations: 1.277 MB / 1.438 GB, free: 458.8 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/2.602, allocations: 468.6 kB / 1.439 GB, free: 458.6 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/2.619, allocations: 11.03 MB / 1.449 GB, free: 453 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001243/2.619, allocations: 53.64 kB / 1.449 GB, free: 453 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.15e-05/2.619, allocations: 6.875 kB / 1.449 GB, free: 453 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.049e-05/2.619, allocations: 23.64 kB / 1.449 GB, free: 453 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0262/2.645, allocations: 15.26 MB / 1.464 GB, free: 438.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/2.645, allocations: 4 kB / 1.464 GB, free: 438.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002535/2.648, allocations: 0.6827 MB / 1.465 GB, free: 437.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006448/2.654, allocations: 1.789 MB / 1.467 GB, free: 436 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007443/2.655, allocations: 175.7 kB / 1.467 GB, free: 435.9 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/2.666, allocations: 12.22 MB / 1.479 GB, free: 423.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/2.666, allocations: 4 kB / 1.479 GB, free: 423.3 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01668/2.683, allocations: 11.79 MB / 1.49 GB, free: 411.5 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/2.684, allocations: 499.1 kB / 1.491 GB, free: 410.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/2.686, allocations: 95.84 kB / 1.491 GB, free: 410.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/2.688, allocations: 112.2 kB / 1.491 GB, free: 410.7 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007404/2.689, allocations: 367.2 kB / 1.491 GB, free: 410.4 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005097/2.69, allocations: 259.7 kB / 1.492 GB, free: 410.1 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.003063/2.693, allocations: 2.29 MB / 1.494 GB, free: 407.8 MB / 0.9512 GB Notification: Performance of sort global known variables: time 5.31e-07/2.693, allocations: 3.438 kB / 1.494 GB, free: 407.8 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01005/2.703, allocations: 3.512 MB / 1.497 GB, free: 404.7 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.02553/2.728, allocations: 16.49 MB / 1.513 GB, free: 389.2 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01088/2.739, allocations: 7.129 MB / 1.52 GB, free: 382.1 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/2.739, allocations: 0 / 1.52 GB, free: 382.1 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.006299/2.746, allocations: 4.212 MB / 1.525 GB, free: 377.9 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007523/2.753, allocations: 1.617 MB / 1.526 GB, free: 376.3 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06921/2.823, allocations: 45.21 MB / 1.57 GB, free: 331.5 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002426/2.825, allocations: 3.317 MB / 1.574 GB, free: 328.2 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.005796/2.831, allocations: 2.888 MB / 1.576 GB, free: 325.4 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003324/2.834, allocations: 2.514 MB / 1.579 GB, free: 322.9 MB / 0.9512 GB Notification: Performance of SimCode: time 8.41e-07/2.834, allocations: 4 kB / 1.579 GB, free: 322.9 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2398/3.074, allocations: 201.5 MB / 1.776 GB, free: 121.9 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.21/29.29, allocations: 3.984 kB / 1.776 GB, free: 121.9 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestDynamicTopology.fmu > 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