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.001197/0.001197, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.388/1.388, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6353/0.6353, allocations: 89.63 MB / 381.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003813, allocations: 11.41 kB / 461.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1199, allocations: 68.82 MB / 0.5177 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.02/1.14, allocations: 360.5 MB / 0.8697 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0452/1.185, allocations: 38.92 MB / 0.9077 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003003/1.189, allocations: 29.47 kB / 0.9078 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.005451/1.194, allocations: 1.838 MB / 0.9096 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02381/1.218, allocations: 7.575 MB / 0.917 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01277/1.231, allocations: 3.748 MB / 0.9206 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.007148/1.238, allocations: 5.686 MB / 0.9262 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/1.24, allocations: 1.019 MB / 0.9272 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006141/1.246, allocations: 2.111 MB / 0.9292 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003809/1.25, allocations: 1.588 MB / 0.9308 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0008396/1.251, allocations: 93.31 kB / 0.9309 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03743/1.288, allocations: 18.69 MB / 0.9491 GB, free: 0.7656 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001487/1.29, allocations: 0.6567 MB / 0.9498 GB, free: 148 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002479/1.292, allocations: 1.184 MB / 0.9509 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01739/1.309, allocations: 6.768 MB / 0.9575 GB, free: 8.637 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/1.31, allocations: 0 / 0.9575 GB, free: 8.637 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.914e-06/1.31, allocations: 0 / 0.9575 GB, free: 8.637 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.514e-05/1.31, allocations: 0 / 0.9575 GB, free: 8.637 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.01193/1.322, allocations: 3.786 MB / 0.9612 GB, free: 4.816 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 8.653e-05/1.322, allocations: 8.031 kB / 0.9612 GB, free: 4.809 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008702/1.323, allocations: 256.9 kB / 0.9615 GB, free: 4.555 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/1.325, allocations: 1.212 MB / 0.9627 GB, free: 3.359 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/1.325, allocations: 138.6 kB / 0.9628 GB, free: 3.227 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004114/1.326, allocations: 193.8 kB / 0.963 GB, free: 3.043 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00547/1.331, allocations: 3.097 MB / 0.966 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/1.331, allocations: 3.938 kB / 0.966 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/1.331, allocations: 79.5 kB / 0.9661 GB, free: 15.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000264/1.332, allocations: 183.8 kB / 0.9662 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005477/1.337, allocations: 3.386 MB / 0.9696 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01725/1.354, allocations: 12.37 MB / 0.9816 GB, free: 14.87 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/1.357, allocations: 1.64 MB / 0.9832 GB, free: 13.22 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002112/1.36, allocations: 1.426 MB / 0.9846 GB, free: 11.79 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003071/1.363, allocations: 3.848 MB / 0.9884 GB, free: 7.125 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/1.363, allocations: 53.62 kB / 0.9884 GB, free: 7.066 MB / 0.67 GB Notification: Performance of pre-optimization done (n=196): time 1.249e-05/1.363, allocations: 0 / 0.9884 GB, free: 7.066 MB / 0.67 GB Notification: Performance of matching and sorting (n=200): time 0.01747/1.38, allocations: 8.408 MB / 0.9966 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/1.38, allocations: 99.11 kB / 0.9967 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/1.382, allocations: 1.171 MB / 0.9979 GB, free: 13.15 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002908/1.383, allocations: 61.06 kB / 0.9979 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005952/1.383, allocations: 0.7563 MB / 0.9987 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007582/1.384, allocations: 0.68 MB / 0.9993 GB, free: 11.65 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/1.384, allocations: 137.4 kB / 0.9995 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.826e-05/1.384, allocations: 301.1 kB / 0.9998 GB, free: 11.22 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/1.386, allocations: 1.031 MB / 1.001 GB, free: 10.19 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001935/1.388, allocations: 1.155 MB / 1.002 GB, free: 9.027 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003861/1.392, allocations: 2.356 MB / 1.004 GB, free: 6.672 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/1.392, allocations: 4 kB / 1.004 GB, free: 6.668 MB / 0.6856 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005925/1.398, allocations: 3.033 MB / 1.007 GB, free: 3.645 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/1.398, allocations: 4 kB / 1.007 GB, free: 3.641 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/1.398, allocations: 0 / 1.007 GB, free: 3.641 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/1.4, allocations: 472.1 kB / 1.008 GB, free: 3.176 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/1.401, allocations: 338.2 kB / 1.008 GB, free: 2.859 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00852/1.41, allocations: 5.831 MB / 1.014 GB, free: 12.8 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/1.412, allocations: 143.6 kB / 1.014 GB, free: 12.66 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00055/1.412, allocations: 118 kB / 1.014 GB, free: 12.54 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.001509/1.414, allocations: 0.4938 MB / 1.014 GB, free: 12.06 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005974/1.415, allocations: 169.9 kB / 1.015 GB, free: 11.89 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/1.425, allocations: 4.635 MB / 1.019 GB, free: 7.23 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.824e-05/1.425, allocations: 24 kB / 1.019 GB, free: 7.207 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-05/1.425, allocations: 4 kB / 1.019 GB, free: 7.203 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.59e-05/1.425, allocations: 19.89 kB / 1.019 GB, free: 7.184 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/1.438, allocations: 6.224 MB / 1.025 GB, free: 0.957 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/1.438, allocations: 4 kB / 1.025 GB, free: 0.9531 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/1.439, allocations: 299.1 kB / 1.025 GB, free: 0.6758 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/1.441, allocations: 0.4884 MB / 1.026 GB, free: 188 kB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/1.441, allocations: 79.94 kB / 1.026 GB, free: 108 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008367/1.449, allocations: 5.846 MB / 1.032 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.449, allocations: 7.188 kB / 1.032 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008819/1.458, allocations: 4.754 MB / 1.036 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009286/1.459, allocations: 282.8 kB / 1.037 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006737/1.46, allocations: 40 kB / 1.037 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00183/1.462, allocations: 142.3 kB / 1.037 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/1.462, allocations: 168.5 kB / 1.037 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003787/1.463, allocations: 107.9 kB / 1.037 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001761/1.464, allocations: 0.9393 MB / 1.038 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/1.464, allocations: 4 kB / 1.038 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.006103/1.47, allocations: 1.639 MB / 1.04 GB, free: 1.934 MB / 0.7169 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.008044/1.478, allocations: 2.032 MB / 1.042 GB, free: 52 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.007091/1.486, allocations: 3.101 MB / 1.045 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.486, allocations: 0 / 1.045 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00392/1.49, allocations: 1.914 MB / 1.046 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00559/1.495, allocations: 0.7327 MB / 1.047 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.507, allocations: 5.802 MB / 1.053 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/1.509, allocations: 1.662 MB / 1.054 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/1.51, allocations: 247.3 kB / 1.055 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of SimCode: time 8.32e-07/1.51, allocations: 4 kB / 1.055 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of Templates: time 0.3993/1.91, allocations: 71.96 MB / 1.125 GB, free: 351.3 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches