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.001489/0.001489, allocations: 107.4 kB / 15.99 MB, free: 6.336 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.001628/0.001628, allocations: 193 kB / 16.91 MB, free: 6.176 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.269/1.269, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6759/0.6759, allocations: 91.18 MB / 381.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 87.86 kB / 460.5 MB, free: 9.371 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1229, allocations: 67.67 MB / 0.5158 GB, free: 5.621 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.8542/0.9772, allocations: 360.6 MB / 0.8679 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03749/1.015, allocations: 38.72 MB / 0.9057 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002659/1.017, allocations: 86.34 kB / 0.9058 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004536/1.022, allocations: 1.815 MB / 0.9076 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02067/1.043, allocations: 7.959 MB / 0.9154 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.01034/1.053, allocations: 3.909 MB / 0.9192 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004973/1.058, allocations: 3.909 MB / 0.923 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001934/1.06, allocations: 1.187 MB / 0.9242 GB, free: 9.875 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005255/1.065, allocations: 2.57 MB / 0.9267 GB, free: 7.469 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002803/1.068, allocations: 1.87 MB / 0.9285 GB, free: 5.719 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.000837/1.069, allocations: 244 kB / 0.9287 GB, free: 5.48 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02774/1.097, allocations: 17.22 MB / 0.9456 GB, free: 5.621 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001339/1.098, allocations: 0.8528 MB / 0.9464 GB, free: 4.777 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0027/1.101, allocations: 1.437 MB / 0.9478 GB, free: 3.348 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0142/1.115, allocations: 7.036 MB / 0.9547 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.115, allocations: 0 / 0.9547 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.773e-06/1.115, allocations: 0 / 0.9547 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001286/1.115, allocations: 0 / 0.9547 GB, free: 12.75 MB / 0.6544 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.01097/1.126, allocations: 4.483 MB / 0.959 GB, free: 8.262 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/1.126, allocations: 12.03 kB / 0.9591 GB, free: 8.25 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007394/1.127, allocations: 288.5 kB / 0.9593 GB, free: 7.965 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/1.13, allocations: 1.526 MB / 0.9608 GB, free: 6.434 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/1.13, allocations: 142.2 kB / 0.961 GB, free: 6.301 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003861/1.13, allocations: 194.5 kB / 0.9611 GB, free: 6.117 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004961/1.135, allocations: 3.091 MB / 0.9642 GB, free: 3.012 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/1.135, allocations: 0 / 0.9642 GB, free: 3.012 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/1.135, allocations: 78.5 kB / 0.9642 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002209/1.136, allocations: 183.9 kB / 0.9644 GB, free: 2.762 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0051/1.141, allocations: 3.389 MB / 0.9677 GB, free: 15.38 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/1.155, allocations: 12.41 MB / 0.9798 GB, free: 1.805 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/1.158, allocations: 1.642 MB / 0.9814 GB, free: 148 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/1.16, allocations: 1.432 MB / 0.9828 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002479/1.162, allocations: 3.85 MB / 0.9866 GB, free: 10.04 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/1.162, allocations: 48.56 kB / 0.9866 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 4.698e-06/1.162, allocations: 4 kB / 0.9866 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01451/1.177, allocations: 8.538 MB / 0.995 GB, free: 1.211 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/1.177, allocations: 103.1 kB / 0.9951 GB, free: 1.09 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/1.179, allocations: 1.423 MB / 0.9965 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001834/1.179, allocations: 60.44 kB / 0.9965 GB, free: 15.6 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005865/1.18, allocations: 0.8912 MB / 0.9974 GB, free: 14.7 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.000558/1.18, allocations: 0.6699 MB / 0.9981 GB, free: 14.04 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006074/1.181, allocations: 349.5 kB / 0.9984 GB, free: 13.7 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.246e-05/1.181, allocations: 305.1 kB / 0.9987 GB, free: 13.39 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/1.182, allocations: 1.027 MB / 0.9997 GB, free: 12.37 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/1.184, allocations: 1.155 MB / 1.001 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/1.188, allocations: 2.352 MB / 1.003 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/1.188, allocations: 0 / 1.003 GB, free: 8.848 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005156/1.193, allocations: 3.068 MB / 1.006 GB, free: 5.766 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/1.193, allocations: 4 kB / 1.006 GB, free: 5.762 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/1.193, allocations: 3.938 kB / 1.006 GB, free: 5.758 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/1.194, allocations: 489.7 kB / 1.007 GB, free: 5.277 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/1.195, allocations: 339.5 kB / 1.007 GB, free: 4.945 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/1.203, allocations: 6.342 MB / 1.013 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/1.205, allocations: 147.7 kB / 1.013 GB, free: 14.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004248/1.205, allocations: 119.9 kB / 1.013 GB, free: 14.08 MB / 0.7169 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.001114/1.206, allocations: 0.5224 MB / 1.014 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006644/1.207, allocations: 203.9 kB / 1.014 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007518/1.215, allocations: 4.648 MB / 1.019 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.525e-05/1.215, allocations: 20 kB / 1.019 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/1.215, allocations: 8 kB / 1.019 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.468e-05/1.215, allocations: 11.95 kB / 1.019 GB, free: 8.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/1.226, allocations: 6.301 MB / 1.025 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/1.226, allocations: 4 kB / 1.025 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/1.227, allocations: 301.3 kB / 1.025 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/1.228, allocations: 0.5026 MB / 1.026 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002078/1.229, allocations: 82.36 kB / 1.026 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007409/1.236, allocations: 6.348 MB / 1.032 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.236, allocations: 4 kB / 1.032 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007538/1.244, allocations: 4.788 MB / 1.037 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006491/1.244, allocations: 274.5 kB / 1.037 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004877/1.245, allocations: 46.25 kB / 1.037 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/1.246, allocations: 135.6 kB / 1.037 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/1.246, allocations: 179.3 kB / 1.037 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/1.247, allocations: 111.9 kB / 1.037 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00155/1.248, allocations: 1.095 MB / 1.038 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/1.248, allocations: 0 / 1.038 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004339/1.253, allocations: 1.651 MB / 1.04 GB, free: 2.535 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.004895/1.258, allocations: 1.995 MB / 1.042 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.205/1.463, allocations: 3.555 MB / 1.045 GB, free: 320.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/1.463, allocations: 1 kB / 1.045 GB, free: 320.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003021/1.466, allocations: 1.91 MB / 1.047 GB, free: 320.6 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/1.469, allocations: 0.7975 MB / 1.048 GB, free: 320.6 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007757/1.477, allocations: 6.029 MB / 1.054 GB, free: 318.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/1.478, allocations: 1.757 MB / 1.056 GB, free: 317.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.48, allocations: 272.3 kB / 1.056 GB, free: 317.5 MB / 0.7325 GB Notification: Performance of SimCode: time 8.52e-07/1.48, allocations: 0 / 1.056 GB, free: 317.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.08793/1.568, allocations: 76.78 MB / 1.131 GB, free: 278 MB / 0.7325 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