Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 116.1 kB / 17.17 MB, free: 6 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 209.5 kB / 20.13 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6629/0.6629, allocations: 100.3 MB / 409.8 MB, free: 5.395 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 88.25 kB / 0.5589 GB, free: 14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3926, allocations: 74.43 MB / 0.6316 GB, free: 2.441 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1704/0.563, allocations: 145 MB / 0.7732 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.005619/0.5686, allocations: 4.612 MB / 0.7777 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.569, allocations: 35.69 kB / 0.7777 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0006537/0.5696, allocations: 214.6 kB / 0.7779 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0007071/0.5703, allocations: 318.2 kB / 0.7782 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.5714, allocations: 434.4 kB / 0.7786 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007852/0.5721, allocations: 0.7401 MB / 0.7794 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.5723, allocations: 88.38 kB / 0.7794 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007362/0.5731, allocations: 402.3 kB / 0.7798 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004762/0.5736, allocations: 342.8 kB / 0.7802 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.5736, allocations: 28 kB / 0.7802 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008722/0.5745, allocations: 467 kB / 0.7806 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.5746, allocations: 107.6 kB / 0.7807 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.5748, allocations: 210.8 kB / 0.7809 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008785/0.5757, allocations: 0.646 MB / 0.7816 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5757, allocations: 7.938 kB / 0.7816 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5757, allocations: 0 / 0.7816 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.5757, allocations: 0 / 0.7816 GB, free: 9.355 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001608/0.5773, allocations: 0.8292 MB / 0.7824 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.5774, allocations: 11.97 kB / 0.7824 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.609e-05/0.5774, allocations: 8.75 kB / 0.7824 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.096e-05/0.5775, allocations: 70.7 kB / 0.7825 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.441e-05/0.5776, allocations: 52.61 kB / 0.7825 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007153/0.5783, allocations: 490.2 kB / 0.783 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.5783, allocations: 16.94 kB / 0.783 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.064e-05/0.5784, allocations: 32.11 kB / 0.783 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006876/0.579, allocations: 441.2 kB / 0.7835 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5791, allocations: 3.938 kB / 0.7835 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/0.5791, allocations: 12 kB / 0.7835 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.157e-05/0.5791, allocations: 12.56 kB / 0.7835 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007797/0.5799, allocations: 485.8 kB / 0.7839 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.5821, allocations: 1.446 MB / 0.7854 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/0.5826, allocations: 222.5 kB / 0.7856 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.5829, allocations: 196.8 kB / 0.7858 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000334/0.5832, allocations: 329 kB / 0.7861 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.5833, allocations: 30.56 kB / 0.7861 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.653e-06/0.5833, allocations: 11.94 kB / 0.7861 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33): time 0.002866/0.5861, allocations: 1.535 MB / 0.7876 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.5862, allocations: 55.41 kB / 0.7877 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.5867, allocations: 402 kB / 0.788 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.5867, allocations: 33.7 kB / 0.7881 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.5869, allocations: 204.6 kB / 0.7883 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.587, allocations: 119 kB / 0.7884 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.5871, allocations: 61.67 kB / 0.7884 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001855/0.5873, allocations: 362.7 kB / 0.7888 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.5875, allocations: 143.9 kB / 0.7889 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002618/0.5878, allocations: 147.9 kB / 0.7891 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005912/0.5884, allocations: 341.6 kB / 0.7894 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.5884, allocations: 4 kB / 0.7894 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009609/0.5894, allocations: 0.5133 MB / 0.7899 GB, free: 360 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.5894, allocations: 4 kB / 0.7899 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.5894, allocations: 0 / 0.7899 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004031/0.5898, allocations: 120.7 kB / 0.79 GB, free: 232 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.5901, allocations: 51.95 kB / 0.7901 GB, free: 180 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.5932, allocations: 2.332 MB / 0.7923 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.5935, allocations: 12 kB / 0.7924 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/0.5935, allocations: 15.98 kB / 0.7924 GB, free: 13.68 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.5938, allocations: 167.3 kB / 0.7925 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.911e-05/0.5939, allocations: 47.67 kB / 0.7926 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.5951, allocations: 0.6622 MB / 0.7932 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.5951, allocations: 7.984 kB / 0.7932 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.5951, allocations: 0 / 0.7932 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.5951, allocations: 4 kB / 0.7932 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.5957, allocations: 449.2 kB / 0.7937 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5957, allocations: 4 kB / 0.7937 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.5958, allocations: 27.95 kB / 0.7937 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003984/0.5962, allocations: 136.7 kB / 0.7938 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/0.5963, allocations: 7.984 kB / 0.7938 GB, free: 12.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.5991, allocations: 2.326 MB / 0.7961 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.5991, allocations: 7.938 kB / 0.7961 GB, free: 9.605 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.6003, allocations: 0.6459 MB / 0.7967 GB, free: 8.934 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.6004, allocations: 120.8 kB / 0.7969 GB, free: 8.797 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.6004, allocations: 4 kB / 0.7969 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.6006, allocations: 8.031 kB / 0.7969 GB, free: 8.785 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.6007, allocations: 23.91 kB / 0.7969 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.6007, allocations: 15.97 kB / 0.7969 GB, free: 8.746 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003884/0.6011, allocations: 322.8 kB / 0.7972 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6011, allocations: 0 / 0.7972 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005383/0.6016, allocations: 108 kB / 0.7973 GB, free: 8.324 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001751/0.6034, allocations: 1.273 MB / 0.7986 GB, free: 7.02 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001083/0.6045, allocations: 0.491 MB / 0.799 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.6045, allocations: 0 / 0.799 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006657/0.6051, allocations: 374 kB / 0.7994 GB, free: 6.137 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006498/0.6058, allocations: 120.5 kB / 0.7995 GB, free: 6.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006318/0.6121, allocations: 4.122 MB / 0.8035 GB, free: 1.816 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.6127, allocations: 0.827 MB / 0.8043 GB, free: 0.9648 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002903/0.613, allocations: 96.09 kB / 0.8044 GB, free: 0.8672 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.6132, allocations: 151.4 kB / 0.8046 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of SimCode: time 8.31e-07/0.6132, allocations: 0 / 0.8046 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.6521, allocations: 12.03 MB / 0.8163 GB, free: 4.875 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.4, allocations: 15.98 kB / 0.8163 GB, free: 4.859 MB / 0.6387 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.937528250971809]