Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junction1.mC_scaled.1.|junction1.medium.T|junction1.medium.Xi.1.|junction1.medium.p",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances") Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.2 MB / 224.8 MB, free: 280 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000428/0.0004282, allocations: 8 kB / 282.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2847, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances): time 0.6903/0.975, allocations: 242.8 MB / 0.5606 GB, free: 8.121 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04987/1.025, allocations: 26.51 MB / 0.5865 GB, free: 15.2 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002819/1.028, allocations: 78.47 kB / 0.5866 GB, free: 15.17 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003433/1.031, allocations: 0.843 MB / 0.5874 GB, free: 14.43 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02329/1.055, allocations: 6.085 MB / 0.5933 GB, free: 8.324 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02098/1.076, allocations: 5.935 MB / 0.5991 GB, free: 2.375 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007356/1.083, allocations: 3.699 MB / 0.6027 GB, free: 14.67 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003437/1.086, allocations: 1.638 MB / 0.6043 GB, free: 13 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008909/1.095, allocations: 3.109 MB / 0.6074 GB, free: 9.883 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004755/1.1, allocations: 2.037 MB / 0.6094 GB, free: 7.84 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007584/1.101, allocations: 144 kB / 0.6095 GB, free: 7.699 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03488/1.136, allocations: 14.45 MB / 0.6236 GB, free: 9.227 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001992/1.138, allocations: 0.9664 MB / 0.6245 GB, free: 8.258 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/1.139, allocations: 0.5122 MB / 0.625 GB, free: 7.738 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01975/1.159, allocations: 7.707 MB / 0.6326 GB, free: 16 kB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.642e-06/1.159, allocations: 0 / 0.6326 GB, free: 16 kB / 474.7 MB Notification: Performance of FrontEnd: time 2.967e-06/1.159, allocations: 0 / 0.6326 GB, free: 16 kB / 474.7 MB Notification: Performance of Transformations before backend: time 6.111e-05/1.159, allocations: 4 kB / 0.6326 GB, free: 12 kB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.01366/1.173, allocations: 4.241 MB / 0.6367 GB, free: 11.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/1.173, allocations: 8.031 kB / 0.6367 GB, free: 11.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001391/1.174, allocations: 284.8 kB / 0.637 GB, free: 11.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/1.178, allocations: 1.452 MB / 0.6384 GB, free: 9.902 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/1.178, allocations: 151.5 kB / 0.6386 GB, free: 9.754 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005142/1.179, allocations: 183.9 kB / 0.6387 GB, free: 9.574 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008032/1.187, allocations: 3.162 MB / 0.6418 GB, free: 6.363 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/1.187, allocations: 3.906 kB / 0.6418 GB, free: 6.359 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003758/1.187, allocations: 87.94 kB / 0.6419 GB, free: 6.273 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003219/1.188, allocations: 183.7 kB / 0.6421 GB, free: 6.094 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009524/1.197, allocations: 3.548 MB / 0.6456 GB, free: 2.543 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2969/1.494, allocations: 12.18 MB / 0.6574 GB, free: 201.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004118/1.498, allocations: 1.653 MB / 0.6591 GB, free: 201.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00157/1.5, allocations: 1.745 MB / 0.6608 GB, free: 199.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/1.5, allocations: 51.72 kB / 0.6608 GB, free: 199.2 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002096/1.502, allocations: 308.9 kB / 0.6611 GB, free: 199.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=157): time 6.235e-06/1.502, allocations: 0 / 0.6611 GB, free: 199.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03389/1.536, allocations: 8.657 MB / 0.6696 GB, free: 195.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.536, allocations: 197.7 kB / 0.6698 GB, free: 195.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/1.539, allocations: 1.636 MB / 0.6713 GB, free: 194.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003599/1.539, allocations: 59.64 kB / 0.6714 GB, free: 194.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005675/1.54, allocations: 0.9815 MB / 0.6724 GB, free: 193.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005984/1.54, allocations: 0.5869 MB / 0.6729 GB, free: 192.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/1.541, allocations: 51.84 kB / 0.673 GB, free: 192.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.541, allocations: 400.8 kB / 0.6734 GB, free: 192.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003086/1.544, allocations: 1.209 MB / 0.6745 GB, free: 191.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003548/1.547, allocations: 1.786 MB / 0.6763 GB, free: 190.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003762/1.551, allocations: 1.505 MB / 0.6778 GB, free: 189.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/1.551, allocations: 7.328 kB / 0.6778 GB, free: 189.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.01291/1.564, allocations: 3.96 MB / 0.6816 GB, free: 187.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003109/1.564, allocations: 0.6089 MB / 0.6822 GB, free: 186.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/1.565, allocations: 15.34 kB / 0.6822 GB, free: 186.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/1.575, allocations: 1.332 MB / 0.6835 GB, free: 186.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003099/1.578, allocations: 0.5432 MB / 0.6841 GB, free: 186.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/1.582, allocations: 2.15 MB / 0.6862 GB, free: 184.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/1.585, allocations: 204.1 kB / 0.6864 GB, free: 184.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005025/1.586, allocations: 179.2 kB / 0.6865 GB, free: 184.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/1.586, allocations: 8.938 kB / 0.6866 GB, free: 184.5 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01264/1.599, allocations: 3.819 MB / 0.6903 GB, free: 182.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.687e-05/1.599, allocations: 18.56 kB / 0.6903 GB, free: 182.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006969/1.606, allocations: 0.9594 MB / 0.6912 GB, free: 181.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003094/1.609, allocations: 0.55 MB / 0.6918 GB, free: 181.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003007/1.612, allocations: 1.902 MB / 0.6936 GB, free: 179.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.615, allocations: 195.8 kB / 0.6938 GB, free: 179 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000518/1.615, allocations: 175.9 kB / 0.694 GB, free: 178.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (276): * Single equations (assignments): 272 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,5 14} Notification: Performance of prepare postOptimizeDAE: time 0.001579/1.617, allocations: 0.637 MB / 0.6946 GB, free: 178.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005534/1.617, allocations: 205.5 kB / 0.6948 GB, free: 178 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.628, allocations: 4.073 MB / 0.6988 GB, free: 173.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/1.628, allocations: 20 kB / 0.6988 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/1.628, allocations: 0 / 0.6988 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/1.628, allocations: 7.969 kB / 0.6988 GB, free: 173.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.64, allocations: 5.669 MB / 0.7043 GB, free: 168.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/1.64, allocations: 12.02 kB / 0.7044 GB, free: 168.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.642, allocations: 331.5 kB / 0.7047 GB, free: 167.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007273/1.649, allocations: 1.196 MB / 0.7058 GB, free: 166.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004648/1.649, allocations: 71.95 kB / 0.7059 GB, free: 166.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/1.653, allocations: 2.043 MB / 0.7079 GB, free: 164.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.124e-06/1.653, allocations: 4 kB / 0.7079 GB, free: 164.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.663, allocations: 4.511 MB / 0.7123 GB, free: 159.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008377/1.664, allocations: 314.4 kB / 0.7126 GB, free: 159.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006571/1.665, allocations: 40 kB / 0.7126 GB, free: 159.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002266/1.667, allocations: 147.7 kB / 0.7128 GB, free: 159.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004308/1.667, allocations: 149.7 kB / 0.7129 GB, free: 159.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003216/1.668, allocations: 119.9 kB / 0.713 GB, free: 159.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001945/1.67, allocations: 1.102 MB / 0.7141 GB, free: 158 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.136e-06/1.67, allocations: 4 kB / 0.7141 GB, free: 158 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008623/1.678, allocations: 2.751 MB / 0.7168 GB, free: 155.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * 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 (166): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.007526/1.686, allocations: 2.503 MB / 0.7193 GB, free: 153.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01238/1.698, allocations: 4.89 MB / 0.724 GB, free: 148.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.698, allocations: 6 kB / 0.724 GB, free: 148.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.702, allocations: 1.393 MB / 0.7254 GB, free: 147.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005406/1.707, allocations: 1.01 MB / 0.7264 GB, free: 146.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009532/1.717, allocations: 5.509 MB / 0.7318 GB, free: 140.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/1.718, allocations: 1.708 MB / 0.7334 GB, free: 138.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/1.72, allocations: 315.2 kB / 0.7337 GB, free: 138.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.697e-06/1.72, allocations: 0 / 0.7337 GB, free: 138.5 MB / 490.7 MB Notification: Performance of Templates: time 0.1099/1.83, allocations: 81.47 MB / 0.8133 GB, free: 56.98 MB / 490.7 MB