Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.21/2.21, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004386, allocations: 15.98 kB / 314.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2992, allocations: 54.86 MB / 369.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice): time 0.5128/0.8121, allocations: 143 MB / 0.5001 GB, free: 2.816 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008843/0.821, allocations: 5.732 MB / 0.5057 GB, free: 2.754 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006819/0.8217, allocations: 26.44 kB / 0.5058 GB, free: 2.754 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000813/0.8225, allocations: 263.2 kB / 0.506 GB, free: 2.75 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.8269, allocations: 1.388 MB / 0.5074 GB, free: 2.73 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.8295, allocations: 0.7429 MB / 0.5081 GB, free: 2.711 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.8313, allocations: 0.977 MB / 0.5091 GB, free: 2.703 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005122/0.8319, allocations: 351.4 kB / 0.5094 GB, free: 2.672 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.8329, allocations: 0.505 MB / 0.5099 GB, free: 2.672 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004811/0.8334, allocations: 350.2 kB / 0.5102 GB, free: 2.668 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 8.926e-05/0.8335, allocations: 24.72 kB / 0.5102 GB, free: 2.668 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00336/0.8369, allocations: 1.269 MB / 0.5115 GB, free: 2.668 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.8371, allocations: 130.3 kB / 0.5116 GB, free: 2.668 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003999/0.8376, allocations: 154.7 kB / 0.5118 GB, free: 18.64 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002065/0.8396, allocations: 1.124 MB / 0.5129 GB, free: 18.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.8397, allocations: 0 / 0.5129 GB, free: 18.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.32e-06/0.8397, allocations: 4 kB / 0.5129 GB, free: 18.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.8397, allocations: 0 / 0.5129 GB, free: 18.54 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00203/0.8417, allocations: 1.069 MB / 0.5139 GB, free: 17.85 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.8418, allocations: 7.844 kB / 0.5139 GB, free: 17.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.8432, allocations: 163.8 kB / 0.5141 GB, free: 17.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.8444, allocations: 0.57 MB / 0.5146 GB, free: 17.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.8444, allocations: 36.05 kB / 0.5147 GB, free: 17.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.206e-05/0.8445, allocations: 41.45 kB / 0.5147 GB, free: 17.56 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.8456, allocations: 0.5765 MB / 0.5153 GB, free: 17.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.8457, allocations: 0 / 0.5153 GB, free: 17.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-05/0.8458, allocations: 18.38 kB / 0.5153 GB, free: 17.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.8458, allocations: 14.03 kB / 0.5153 GB, free: 17.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000887/0.8467, allocations: 451.3 kB / 0.5157 GB, free: 17.42 MB / 442.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.003618/0.8503, allocations: 2.577 MB / 0.5182 GB, free: 15.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005625/0.8509, allocations: 279.2 kB / 0.5185 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003803/0.8513, allocations: 232.8 kB / 0.5187 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004815/0.8518, allocations: 266.5 kB / 0.519 GB, free: 15.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 4.362e-06/0.8518, allocations: 0 / 0.519 GB, free: 15.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=35): time 0.001311/0.8531, allocations: 0.633 MB / 0.5196 GB, free: 15.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.8533, allocations: 163.6 kB / 0.5198 GB, free: 15.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006526/0.854, allocations: 0.4941 MB / 0.5202 GB, free: 15.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.268e-05/0.854, allocations: 35.64 kB / 0.5203 GB, free: 15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.8543, allocations: 382.3 kB / 0.5206 GB, free: 14.74 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.8544, allocations: 118.1 kB / 0.5207 GB, free: 14.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.8545, allocations: 13.53 kB / 0.5208 GB, free: 14.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.8547, allocations: 332.9 kB / 0.5211 GB, free: 14.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.855, allocations: 143.2 kB / 0.5212 GB, free: 14.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/0.8554, allocations: 391.9 kB / 0.5216 GB, free: 14.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.8559, allocations: 241.6 kB / 0.5218 GB, free: 14.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.913e-06/0.8559, allocations: 0 / 0.5218 GB, free: 14.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001228/0.8571, allocations: 0.6076 MB / 0.5224 GB, free: 13.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001771/0.8573, allocations: 344 kB / 0.5227 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.8574, allocations: 9.953 kB / 0.5227 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.8574, allocations: 16.94 kB / 0.5228 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004309/0.8617, allocations: 428.8 kB / 0.5232 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006764/0.8624, allocations: 0.6235 MB / 0.5238 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005788/0.863, allocations: 67.59 kB / 0.5238 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.8631, allocations: 59.61 kB / 0.5239 GB, free: 12.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.8632, allocations: 6.156 kB / 0.5239 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001061/0.8642, allocations: 0.5523 MB / 0.5244 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.8643, allocations: 7.438 kB / 0.5245 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.8643, allocations: 11.91 kB / 0.5245 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.8648, allocations: 140.6 kB / 0.5246 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.8648, allocations: 22.94 kB / 0.5246 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.8652, allocations: 49.97 kB / 0.5247 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.358e-05/0.8653, allocations: 56.28 kB / 0.5247 GB, free: 12.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004719/0.8658, allocations: 318.6 kB / 0.525 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.8659, allocations: 61.94 kB / 0.5251 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/0.8681, allocations: 0.7719 MB / 0.5258 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.182e-06/0.8681, allocations: 5.031 kB / 0.5258 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.137e-06/0.8681, allocations: 0 / 0.5258 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.182e-06/0.8682, allocations: 3.094 kB / 0.5258 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.8708, allocations: 1.651 MB / 0.5275 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.969e-06/0.8708, allocations: 3.062 kB / 0.5275 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.8721, allocations: 197.6 kB / 0.5277 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.315e-06/0.8721, allocations: 3.156 kB / 0.5277 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/0.8722, allocations: 22.33 kB / 0.5277 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000524/0.8727, allocations: 0.6034 MB / 0.5283 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.5e-06/0.8727, allocations: 2.062 kB / 0.5283 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.8738, allocations: 0.6365 MB / 0.5289 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.874, allocations: 147.2 kB / 0.529 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.8741, allocations: 12 kB / 0.529 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.8745, allocations: 21.09 kB / 0.5291 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.89e-05/0.8746, allocations: 47.62 kB / 0.5291 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.8747, allocations: 38.88 kB / 0.5291 GB, free: 10.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004856/0.8752, allocations: 343.3 kB / 0.5295 GB, free: 10.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.8752, allocations: 0 / 0.5295 GB, free: 10.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001754/0.877, allocations: 0.5066 MB / 0.53 GB, free: 10.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/0.8784, allocations: 0.5274 MB / 0.5305 GB, free: 10.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006376/0.8848, allocations: 1.283 MB / 0.5317 GB, free: 10.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.946e-06/0.8848, allocations: 0 / 0.5317 GB, free: 10.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.8866, allocations: 445.3 kB / 0.5322 GB, free: 10.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.8881, allocations: 242.5 kB / 0.5324 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.8903, allocations: 1.311 MB / 0.5337 GB, free: 9.293 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.891, allocations: 0.902 MB / 0.5346 GB, free: 8.582 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008734/0.8919, allocations: 114.4 kB / 0.5347 GB, free: 8.562 MB / 442.7 MB Notification: Performance of SimCode: time 2.724e-06/0.892, allocations: 0 / 0.5347 GB, free: 8.562 MB / 442.7 MB Notification: Performance of Templates: time 0.0267/0.9187, allocations: 15.57 MB / 0.5499 GB, free: 1.723 MB / 442.7 MB