Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.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.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.002288/0.002288, allocations: 191.1 kB / 16.25 MB, free: 6.586 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.408/1.408, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6494/0.6494, allocations: 91.19 MB / 381.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 76.88 kB / 459.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 67.7 MB / 0.5151 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3821/0.4908, allocations: 142.8 MB / 0.6546 GB, free: 8.105 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004947/0.4958, allocations: 4.56 MB / 0.6591 GB, free: 4.414 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004768/0.4963, allocations: 27.06 kB / 0.6591 GB, free: 4.402 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006454/0.4969, allocations: 177.7 kB / 0.6593 GB, free: 4.258 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006802/0.4977, allocations: 260.1 kB / 0.6595 GB, free: 4.051 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.4988, allocations: 399.4 kB / 0.6599 GB, free: 3.762 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000649/0.4994, allocations: 0.6689 MB / 0.6605 GB, free: 3.371 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.4996, allocations: 123.5 kB / 0.6607 GB, free: 3.309 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006021/0.5002, allocations: 352.5 kB / 0.661 GB, free: 3.098 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/0.5007, allocations: 339.3 kB / 0.6613 GB, free: 2.902 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.601e-05/0.5007, allocations: 33.22 kB / 0.6614 GB, free: 2.902 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007536/0.5015, allocations: 455.7 kB / 0.6618 GB, free: 2.699 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-05/0.5016, allocations: 100.8 kB / 0.6619 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.5018, allocations: 208.4 kB / 0.6621 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000707/0.5025, allocations: 0.6078 MB / 0.6627 GB, free: 2.098 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.5025, allocations: 0 / 0.6627 GB, free: 2.098 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.5025, allocations: 0 / 0.6627 GB, free: 2.098 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.5025, allocations: 0 / 0.6627 GB, free: 2.098 MB / 478.1 MB 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.001433/0.504, allocations: 0.7931 MB / 0.6634 GB, free: 1.445 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.504, allocations: 10.12 kB / 0.6635 GB, free: 1.445 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.704e-05/0.5041, allocations: 44.38 kB / 0.6635 GB, free: 1.422 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004992/0.5046, allocations: 419.7 kB / 0.6639 GB, free: 1.055 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.5046, allocations: 18.38 kB / 0.6639 GB, free: 1.047 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/0.5047, allocations: 27.91 kB / 0.6639 GB, free: 1.035 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.5054, allocations: 446 kB / 0.6644 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.5054, allocations: 0 / 0.6644 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.5054, allocations: 10.25 kB / 0.6644 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.5055, allocations: 23.67 kB / 0.6644 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006546/0.5061, allocations: 475.6 kB / 0.6649 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.5081, allocations: 1.444 MB / 0.6663 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/0.5086, allocations: 243.7 kB / 0.6665 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.5089, allocations: 215.3 kB / 0.6667 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002968/0.5092, allocations: 329.4 kB / 0.667 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.5092, allocations: 36.33 kB / 0.6671 GB, free: 14.62 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 2.094e-06/0.5093, allocations: 3.125 kB / 0.6671 GB, free: 14.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.0026/0.5119, allocations: 1.53 MB / 0.6685 GB, free: 13.48 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.5119, allocations: 56.78 kB / 0.6686 GB, free: 13.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.5123, allocations: 368.9 kB / 0.669 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.5123, allocations: 32.64 kB / 0.669 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.5124, allocations: 186.2 kB / 0.6692 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.5125, allocations: 122.6 kB / 0.6693 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.5127, allocations: 70.95 kB / 0.6693 GB, free: 12.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.5128, allocations: 352.8 kB / 0.6697 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.513, allocations: 144 kB / 0.6698 GB, free: 12.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.5133, allocations: 149.4 kB / 0.67 GB, free: 12.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004872/0.5138, allocations: 341.9 kB / 0.6703 GB, free: 12.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.5138, allocations: 0 / 0.6703 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008581/0.5146, allocations: 0.5183 MB / 0.6708 GB, free: 11.87 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.5147, allocations: 4.438 kB / 0.6708 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.5147, allocations: 0 / 0.6708 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.515, allocations: 120 kB / 0.6709 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.5153, allocations: 51.17 kB / 0.671 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.5178, allocations: 2.343 MB / 0.6733 GB, free: 9.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.518, allocations: 12.97 kB / 0.6733 GB, free: 9.711 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.5181, allocations: 15.59 kB / 0.6733 GB, free: 9.703 MB / 494.1 MB 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.0001894/0.5183, allocations: 166 kB / 0.6734 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.994e-05/0.5184, allocations: 41.78 kB / 0.6735 GB, free: 9.531 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.5194, allocations: 0.6536 MB / 0.6741 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.5194, allocations: 7.031 kB / 0.6741 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5194, allocations: 6.703 kB / 0.6741 GB, free: 9.059 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.5194, allocations: 0 / 0.6741 GB, free: 9.059 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004271/0.5199, allocations: 439 kB / 0.6745 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5199, allocations: 0 / 0.6745 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.5201, allocations: 35.55 kB / 0.6746 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003399/0.5204, allocations: 127.9 kB / 0.6747 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.5205, allocations: 12.36 kB / 0.6747 GB, free: 8.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.5229, allocations: 2.324 MB / 0.677 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5229, allocations: 5.031 kB / 0.677 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009914/0.5239, allocations: 0.6514 MB / 0.6776 GB, free: 6.137 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.524, allocations: 112.4 kB / 0.6777 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.5241, allocations: 9.875 kB / 0.6777 GB, free: 6.008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.5243, allocations: 3.312 kB / 0.6777 GB, free: 6.008 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.5244, allocations: 25.42 kB / 0.6778 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.5244, allocations: 9.484 kB / 0.6778 GB, free: 5.988 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.5247, allocations: 308.2 kB / 0.6781 GB, free: 5.805 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5247, allocations: 0 / 0.6781 GB, free: 5.805 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004814/0.5252, allocations: 108.8 kB / 0.6782 GB, free: 5.789 MB / 494.1 MB 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.0002594/0.5254, allocations: 180.9 kB / 0.6784 GB, free: 5.656 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000947/0.5264, allocations: 0.5342 MB / 0.6789 GB, free: 5.324 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5264, allocations: 0 / 0.6789 GB, free: 5.324 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007573/0.5272, allocations: 371.2 kB / 0.6792 GB, free: 5.066 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.5278, allocations: 117 kB / 0.6793 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.5293, allocations: 1.023 MB / 0.6803 GB, free: 4.281 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.5297, allocations: 0.8267 MB / 0.6811 GB, free: 3.516 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002355/0.5299, allocations: 100.3 kB / 0.6812 GB, free: 3.465 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.08e-05/0.53, allocations: 37.69 kB / 0.6813 GB, free: 3.449 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.53, allocations: 0 / 0.6813 GB, free: 3.449 MB / 494.1 MB Notification: Performance of Templates: time 0.0113/0.5413, allocations: 7.017 MB / 0.6881 GB, free: 14.09 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches