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.TestSimpleGenericOrifice.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.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.06/2.06, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004336/0.0004338, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3242, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.01893/0.3432, allocations: 14.43 MB / 345.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007693/0.3509, allocations: 3.778 MB / 349.4 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008281/0.3518, allocations: 26.03 kB / 349.4 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008794/0.3527, allocations: 230.6 kB / 349.7 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.3549, allocations: 0.6189 MB / 350.3 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.3581, allocations: 0.7567 MB / 351 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.3601, allocations: 0.8648 MB / 351.9 MB, free: 7.215 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007289/0.3608, allocations: 355.2 kB / 352.2 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.362, allocations: 467.2 kB / 352.7 MB, free: 6.734 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005645/0.3626, allocations: 314 kB / 353 MB, free: 6.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.475e-05/0.3627, allocations: 24.22 kB / 353 MB, free: 6.559 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.3643, allocations: 0.4915 MB / 353.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.3646, allocations: 130.4 kB / 353.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003069/0.3649, allocations: 145.5 kB / 353.8 MB, free: 6.164 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.3665, allocations: 0.7402 MB / 354.5 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.533e-06/0.3666, allocations: 0 / 354.5 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.236e-06/0.3666, allocations: 4 kB / 354.5 MB, free: 5.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3666, allocations: 0 / 354.5 MB, free: 5.688 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001777/0.3684, allocations: 0.8694 MB / 355.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3685, allocations: 9.375 kB / 355.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004412/0.3689, allocations: 78.05 kB / 355.5 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009619/0.3699, allocations: 485.6 kB / 356 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.37, allocations: 34.88 kB / 356 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.283e-05/0.3701, allocations: 48.77 kB / 356.1 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.3714, allocations: 0.6355 MB / 356.7 MB, free: 4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.3714, allocations: 1.281 kB / 356.7 MB, free: 4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.921e-05/0.3715, allocations: 18.72 kB / 356.7 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.3716, allocations: 11.66 kB / 356.7 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.3727, allocations: 0.516 MB / 357.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005146/0.3779, allocations: 3.162 MB / 360.4 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.3784, allocations: 210.9 kB / 360.6 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002097/0.3805, allocations: 1.095 MB / 361.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004023/0.381, allocations: 189 kB / 361.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 3.543e-06/0.381, allocations: 0 / 361.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001088/0.3821, allocations: 479.4 kB / 362.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.3822, allocations: 158.2 kB / 362.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007995/0.3831, allocations: 494.7 kB / 363 MB, free: 14.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/0.3831, allocations: 29.7 kB / 363 MB, free: 14.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003538/0.3835, allocations: 405 kB / 363.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3836, allocations: 86.92 kB / 363.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.3837, allocations: 4 kB / 363.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3839, allocations: 334.8 kB / 363.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3842, allocations: 113.1 kB / 363.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/0.3847, allocations: 413.4 kB / 364.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/0.3852, allocations: 214.2 kB / 364.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.088e-06/0.3852, allocations: 0 / 364.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001323/0.3865, allocations: 0.5735 MB / 365.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003573/0.3869, allocations: 403.1 kB / 365.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.3869, allocations: 8 kB / 365.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.387, allocations: 12 kB / 365.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.3886, allocations: 219.6 kB / 365.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006489/0.3893, allocations: 0.6172 MB / 366.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.39, allocations: 87.3 kB / 366.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/0.3901, allocations: 39.98 kB / 366.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3902, allocations: 4 kB / 366.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001183/0.3914, allocations: 0.537 MB / 367 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.3914, allocations: 8 kB / 367 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.3914, allocations: 16 kB / 367.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005017/0.3919, allocations: 131.7 kB / 367.2 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.15e-05/0.392, allocations: 15.94 kB / 367.2 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.3924, allocations: 51.67 kB / 367.3 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.352e-05/0.3925, allocations: 40.14 kB / 367.3 MB, free: 9.469 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * 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.0005108/0.393, allocations: 318.4 kB / 367.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.3932, allocations: 55.34 kB / 367.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3951, allocations: 0.6665 MB / 368.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.3951, allocations: 4 kB / 368.3 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.598e-06/0.3952, allocations: 0 / 368.3 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3952, allocations: 3.984 kB / 368.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008719/0.3961, allocations: 489.1 kB / 368.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.881e-06/0.3961, allocations: 3.953 kB / 368.8 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/0.3969, allocations: 111.8 kB / 368.9 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.619e-06/0.3969, allocations: 0 / 368.9 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.558e-05/0.397, allocations: 8 kB / 368.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005151/0.3975, allocations: 0.5938 MB / 369.5 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.42e-06/0.3975, allocations: 0 / 369.5 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009291/0.3985, allocations: 426.6 kB / 369.9 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.3988, allocations: 196.1 kB / 370.1 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.399, allocations: 11.98 kB / 370.1 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.3993, allocations: 20.09 kB / 370.2 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.3993, allocations: 27.95 kB / 370.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/0.3994, allocations: 11.98 kB / 370.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006081/0.4, allocations: 354.8 kB / 370.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.4, allocations: 0 / 370.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001659/0.4017, allocations: 387.5 kB / 370.9 MB, free: 5.684 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.0009/0.4026, allocations: 322.9 kB / 371.2 MB, free: 5.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002893/0.4055, allocations: 0.8184 MB / 372.1 MB, free: 4.527 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.893e-06/0.4056, allocations: 0 / 372.1 MB, free: 4.527 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.4067, allocations: 303.9 kB / 372.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.4079, allocations: 196.1 kB / 372.5 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.4105, allocations: 1.259 MB / 373.8 MB, free: 2.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006552/0.4112, allocations: 0.8957 MB / 374.7 MB, free: 1.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.4114, allocations: 71.41 kB / 374.8 MB, free: 1.746 MB / 298.7 MB Notification: Performance of SimCode: time 1.635e-06/0.4114, allocations: 0 / 374.8 MB, free: 1.746 MB / 298.7 MB Notification: Performance of Templates: time 0.02408/0.4355, allocations: 12.82 MB / 387.6 MB, free: 4.938 MB / 314.7 MB