Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.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.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.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.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.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.TestJunctionNM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008058/0.0008058, allocations: 91.84 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.006221/0.006221, allocations: 170 kB / 16.26 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.331/1.331, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6604/0.6604, allocations: 91.33 MB / 382.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003984, allocations: 14.53 kB / 462.7 MB, free: 23.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 69.22 MB / 0.5195 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9882/1.113, allocations: 361 MB / 0.872 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03858/1.151, allocations: 39.07 MB / 0.9101 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003792/1.155, allocations: 80.31 kB / 0.9102 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004758/1.16, allocations: 1.842 MB / 0.912 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02099/1.181, allocations: 7.644 MB / 0.9195 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01095/1.192, allocations: 3.745 MB / 0.9231 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.007611/1.2, allocations: 5.884 MB / 0.9289 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002075/1.202, allocations: 1.044 MB / 0.9299 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005396/1.207, allocations: 2.227 MB / 0.9321 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002945/1.21, allocations: 1.644 MB / 0.9337 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0006446/1.211, allocations: 91 kB / 0.9338 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03206/1.243, allocations: 18.68 MB / 0.952 GB, free: 14.06 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001347/1.244, allocations: 0.67 MB / 0.9527 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002546/1.247, allocations: 1.258 MB / 0.9539 GB, free: 12.17 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02487/1.272, allocations: 10.4 MB / 0.964 GB, free: 2.695 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/1.272, allocations: 4 kB / 0.9641 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.094e-06/1.272, allocations: 0 / 0.9641 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001158/1.272, allocations: 4 kB / 0.9641 GB, free: 2.688 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.01057/1.282, allocations: 4.007 MB / 0.968 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/1.283, allocations: 12.03 kB / 0.968 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/1.283, allocations: 284.5 kB / 0.9683 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/1.286, allocations: 1.519 MB / 0.9697 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/1.286, allocations: 142.3 kB / 0.9699 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004066/1.287, allocations: 202.4 kB / 0.9701 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005126/1.292, allocations: 3.092 MB / 0.9731 GB, free: 9.473 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.701e-05/1.292, allocations: 3.938 kB / 0.9731 GB, free: 9.469 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/1.292, allocations: 79.34 kB / 0.9732 GB, free: 9.398 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002362/1.292, allocations: 179.9 kB / 0.9733 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005018/1.297, allocations: 3.385 MB / 0.9766 GB, free: 5.844 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/1.313, allocations: 12.44 MB / 0.9888 GB, free: 8.328 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002542/1.315, allocations: 1.64 MB / 0.9904 GB, free: 6.68 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/1.317, allocations: 1.426 MB / 0.9918 GB, free: 5.246 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002716/1.32, allocations: 3.851 MB / 0.9955 GB, free: 0.5859 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/1.32, allocations: 61.83 kB / 0.9956 GB, free: 0.5156 MB / 0.67 GB Notification: Performance of pre-optimization done (n=196): time 4.519e-06/1.32, allocations: 0 / 0.9956 GB, free: 0.5156 MB / 0.67 GB Notification: Performance of matching and sorting (n=200): time 0.01496/1.335, allocations: 8.524 MB / 1.004 GB, free: 7.781 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/1.335, allocations: 101.3 kB / 1.004 GB, free: 7.668 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/1.337, allocations: 1.422 MB / 1.005 GB, free: 6.242 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001458/1.337, allocations: 65.14 kB / 1.005 GB, free: 6.176 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006953/1.338, allocations: 0.8912 MB / 1.006 GB, free: 5.273 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006244/1.339, allocations: 0.6713 MB / 1.007 GB, free: 4.609 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/1.339, allocations: 137.6 kB / 1.007 GB, free: 4.469 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001162/1.339, allocations: 313 kB / 1.007 GB, free: 4.16 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/1.341, allocations: 1.031 MB / 1.008 GB, free: 3.129 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/1.342, allocations: 1.154 MB / 1.01 GB, free: 1.969 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003584/1.346, allocations: 2.346 MB / 1.012 GB, free: 15.62 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.346, allocations: 0 / 1.012 GB, free: 15.62 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005301/1.351, allocations: 3.073 MB / 1.015 GB, free: 12.56 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/1.351, allocations: 8 kB / 1.015 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/1.351, allocations: 0 / 1.015 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/1.353, allocations: 478.8 kB / 1.015 GB, free: 12.08 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.354, allocations: 334.5 kB / 1.016 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007907/1.362, allocations: 5.81 MB / 1.021 GB, free: 5.727 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/1.364, allocations: 143.6 kB / 1.021 GB, free: 5.586 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004443/1.364, allocations: 115.9 kB / 1.022 GB, free: 5.473 MB / 0.7012 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 (172): * Single equations (assignments): 160 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001281/1.366, allocations: 0.5205 MB / 1.022 GB, free: 4.961 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005079/1.366, allocations: 201.5 kB / 1.022 GB, free: 4.762 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007966/1.374, allocations: 4.649 MB / 1.027 GB, free: 92 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.59e-05/1.374, allocations: 20 kB / 1.027 GB, free: 72 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/1.374, allocations: 15.92 kB / 1.027 GB, free: 56 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/1.374, allocations: 7.969 kB / 1.027 GB, free: 48 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01094/1.385, allocations: 6.315 MB / 1.033 GB, free: 9.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/1.385, allocations: 0 / 1.033 GB, free: 9.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/1.386, allocations: 306.7 kB / 1.033 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/1.388, allocations: 496 kB / 1.034 GB, free: 8.969 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/1.388, allocations: 79.94 kB / 1.034 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007546/1.396, allocations: 5.818 MB / 1.04 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.396, allocations: 3.938 kB / 1.04 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007737/1.403, allocations: 4.794 MB / 1.044 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008026/1.404, allocations: 306.5 kB / 1.045 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004501/1.405, allocations: 43.98 kB / 1.045 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/1.406, allocations: 142.5 kB / 1.045 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/1.407, allocations: 165.7 kB / 1.045 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/1.407, allocations: 111.9 kB / 1.045 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001782/1.409, allocations: 1.102 MB / 1.046 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/1.409, allocations: 0 / 1.046 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005119/1.414, allocations: 1.651 MB / 1.048 GB, free: 10.52 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (160): * Single equations (assignments): 148 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005482/1.419, allocations: 2.038 MB / 1.05 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005302/1.425, allocations: 3.108 MB / 1.053 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.425, allocations: 0 / 1.053 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003239/1.428, allocations: 1.909 MB / 1.055 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/1.432, allocations: 0.7553 MB / 1.055 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/1.443, allocations: 6.092 MB / 1.061 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/1.445, allocations: 1.766 MB / 1.063 GB, free: 10.94 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.00331/1.448, allocations: 1.288 MB / 1.064 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009128/1.449, allocations: 235.3 kB / 1.064 GB, free: 9.441 MB / 0.7481 GB Notification: Performance of SimCode: time 7.82e-07/1.449, allocations: 0 / 1.064 GB, free: 9.441 MB / 0.7481 GB Notification: Performance of Templates: time 0.3489/1.798, allocations: 67.37 MB / 1.13 GB, free: 350.9 MB / 0.7637 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches