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.001086/0.001086, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001209/0.001209, allocations: 197 kB / 16.14 MB, free: 6.711 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6925/0.6925, allocations: 91.2 MB / 381.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001609, allocations: 74.8 kB / 459.6 MB, free: 23.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1322, allocations: 67.69 MB / 0.515 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.023/1.155, allocations: 366.4 MB / 0.8728 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.04399/1.199, allocations: 39.66 MB / 0.9115 GB, free: 228 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003921/1.203, allocations: 89 kB / 0.9116 GB, free: 228 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.005311/1.208, allocations: 1.851 MB / 0.9134 GB, free: 216 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02408/1.232, allocations: 7.632 MB / 0.9208 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01085/1.243, allocations: 3.749 MB / 0.9245 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.006988/1.25, allocations: 5.888 MB / 0.9303 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001414/1.252, allocations: 1.048 MB / 0.9313 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005738/1.257, allocations: 2.374 MB / 0.9336 GB, free: 13.54 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004292/1.262, allocations: 1.834 MB / 0.9354 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0005329/1.262, allocations: 164.7 kB / 0.9355 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03768/1.3, allocations: 18.75 MB / 0.9539 GB, free: 2.652 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001682/1.302, allocations: 0.7781 MB / 0.9546 GB, free: 2.105 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002748/1.305, allocations: 1.353 MB / 0.9559 GB, free: 1.113 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0318/1.336, allocations: 10.52 MB / 0.9662 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/1.336, allocations: 0 / 0.9662 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.883e-06/1.336, allocations: 0 / 0.9662 GB, free: 7.84 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.575e-05/1.336, allocations: 0 / 0.9662 GB, free: 7.84 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.01198/1.348, allocations: 4.485 MB / 0.9706 GB, free: 3.355 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/1.349, allocations: 8.031 kB / 0.9706 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007227/1.349, allocations: 290.4 kB / 0.9709 GB, free: 3.062 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/1.352, allocations: 1.522 MB / 0.9724 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/1.352, allocations: 145.9 kB / 0.9725 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000303/1.352, allocations: 198.2 kB / 0.9727 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004932/1.357, allocations: 3.092 MB / 0.9757 GB, free: 14.15 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/1.357, allocations: 2.906 kB / 0.9757 GB, free: 14.15 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/1.357, allocations: 79.81 kB / 0.9758 GB, free: 14.08 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002335/1.358, allocations: 183.9 kB / 0.976 GB, free: 13.9 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00484/1.362, allocations: 3.39 MB / 0.9793 GB, free: 10.52 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0153/1.378, allocations: 12.41 MB / 0.9914 GB, free: 13.03 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002814/1.381, allocations: 1.642 MB / 0.993 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0021/1.383, allocations: 1.43 MB / 0.9944 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002765/1.386, allocations: 3.841 MB / 0.9981 GB, free: 5.297 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/1.386, allocations: 60.56 kB / 0.9982 GB, free: 5.23 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 5.881e-06/1.386, allocations: 3.094 kB / 0.9982 GB, free: 5.23 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01564/1.401, allocations: 8.528 MB / 1.007 GB, free: 12.49 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/1.401, allocations: 102 kB / 1.007 GB, free: 12.37 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/1.403, allocations: 1.422 MB / 1.008 GB, free: 10.95 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001503/1.404, allocations: 61.7 kB / 1.008 GB, free: 10.88 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006455/1.404, allocations: 0.89 MB / 1.009 GB, free: 9.98 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005757/1.405, allocations: 0.6695 MB / 1.01 GB, free: 9.316 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000617/1.405, allocations: 347.9 kB / 1.01 GB, free: 8.977 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.447e-05/1.406, allocations: 305.1 kB / 1.01 GB, free: 8.676 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/1.407, allocations: 1.031 MB / 1.011 GB, free: 7.645 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/1.409, allocations: 1.155 MB / 1.012 GB, free: 6.484 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003634/1.413, allocations: 2.351 MB / 1.015 GB, free: 4.133 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/1.413, allocations: 0 / 1.015 GB, free: 4.133 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005372/1.418, allocations: 3.067 MB / 1.018 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/1.418, allocations: 8 kB / 1.018 GB, free: 1.066 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.418, allocations: 0 / 1.018 GB, free: 1.066 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/1.42, allocations: 475.1 kB / 1.018 GB, free: 0.6016 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.421, allocations: 333.9 kB / 1.018 GB, free: 296 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007529/1.428, allocations: 5.795 MB / 1.024 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/1.43, allocations: 147 kB / 1.024 GB, free: 10.12 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/1.43, allocations: 122.6 kB / 1.024 GB, free: 10.01 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.001029/1.431, allocations: 0.5285 MB / 1.025 GB, free: 9.488 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005731/1.432, allocations: 201.5 kB / 1.025 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008057/1.44, allocations: 4.648 MB / 1.03 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.306e-05/1.44, allocations: 20 kB / 1.03 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/1.44, allocations: 8 kB / 1.03 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/1.44, allocations: 11.97 kB / 1.03 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/1.451, allocations: 6.291 MB / 1.036 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/1.451, allocations: 7.969 kB / 1.036 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/1.452, allocations: 308.3 kB / 1.036 GB, free: 14 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001529/1.454, allocations: 495.9 kB / 1.037 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/1.454, allocations: 79.95 kB / 1.037 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007585/1.462, allocations: 5.818 MB / 1.042 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.462, allocations: 0 / 1.042 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008096/1.47, allocations: 4.791 MB / 1.047 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007029/1.471, allocations: 270.5 kB / 1.047 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/1.471, allocations: 47.14 kB / 1.047 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/1.473, allocations: 135.7 kB / 1.047 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003877/1.473, allocations: 170.6 kB / 1.048 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002597/1.473, allocations: 108.2 kB / 1.048 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001717/1.475, allocations: 1.102 MB / 1.049 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/1.475, allocations: 0 / 1.049 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004607/1.48, allocations: 1.65 MB / 1.05 GB, free: 15.11 MB / 0.7481 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.005189/1.485, allocations: 2.001 MB / 1.052 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00535/1.49, allocations: 3.107 MB / 1.055 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.49, allocations: 3.938 kB / 1.055 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003324/1.494, allocations: 1.909 MB / 1.057 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/1.498, allocations: 0.752 MB / 1.058 GB, free: 7.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009553/1.507, allocations: 5.918 MB / 1.064 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/1.509, allocations: 1.766 MB / 1.065 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003526/1.513, allocations: 1.285 MB / 1.067 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.514, allocations: 235.3 kB / 1.067 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of SimCode: time 8.62e-07/1.514, allocations: 0 / 1.067 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of Templates: time 0.3227/1.836, allocations: 68.1 MB / 1.133 GB, free: 391.1 MB / 0.795 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