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.TestSimpleGenericOrifice.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.188/2.188, allocations: 234.9 MB / 250.5 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004257/0.0004256, allocations: 16 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2708, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.02036/0.2912, allocations: 14.47 MB / 383.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2984, allocations: 3.789 MB / 387.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/0.2991, allocations: 27.75 kB / 387.5 MB, free: 8.352 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007911/0.2999, allocations: 222.8 kB / 387.7 MB, free: 8.133 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.3017, allocations: 0.6232 MB / 388.3 MB, free: 7.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00273/0.3045, allocations: 0.7521 MB / 389.1 MB, free: 6.754 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.3059, allocations: 0.8719 MB / 389.9 MB, free: 5.883 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00063/0.3065, allocations: 353.2 kB / 390.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009325/0.3075, allocations: 474.5 kB / 390.8 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.308, allocations: 318.7 kB / 391.1 MB, free: 4.754 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.76e-05/0.3081, allocations: 24 kB / 391.1 MB, free: 4.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.3094, allocations: 0.4994 MB / 391.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.3097, allocations: 123.5 kB / 391.7 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.3099, allocations: 145.4 kB / 391.9 MB, free: 3.961 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.3111, allocations: 0.7373 MB / 392.6 MB, free: 3.223 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.158e-06/0.3112, allocations: 0 / 392.6 MB, free: 3.223 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.902e-06/0.3112, allocations: 7.938 kB / 392.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.791e-06/0.3112, allocations: 0 / 392.6 MB, free: 3.215 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001684/0.3129, allocations: 0.886 MB / 393.5 MB, free: 2.273 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3129, allocations: 8.031 kB / 393.5 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004043/0.3134, allocations: 83.23 kB / 393.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009052/0.3143, allocations: 496.4 kB / 394.1 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/0.3144, allocations: 33 kB / 394.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.3145, allocations: 44 kB / 394.1 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3158, allocations: 0.6339 MB / 394.8 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.3158, allocations: 3.938 kB / 394.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.572e-05/0.3159, allocations: 24 kB / 394.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.3159, allocations: 12 kB / 394.8 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.317, allocations: 0.5191 MB / 395.3 MB, free: 344 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004916/0.322, allocations: 3.177 MB / 398.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.3225, allocations: 211 kB / 398.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001895/0.3244, allocations: 1.103 MB / 399.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003895/0.3248, allocations: 193 kB / 400 MB, free: 11.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 3.31e-06/0.3248, allocations: 0 / 400 MB, free: 11.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001029/0.3259, allocations: 476.2 kB / 400.5 MB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.326, allocations: 162.2 kB / 400.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007679/0.3268, allocations: 0.4948 MB / 401.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.3269, allocations: 29.7 kB / 401.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.3272, allocations: 405 kB / 401.5 MB, free: 9.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.3273, allocations: 86.84 kB / 401.6 MB, free: 9.617 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.3274, allocations: 11.94 kB / 401.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3276, allocations: 334.8 kB / 402 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.3279, allocations: 121 kB / 402.1 MB, free: 9.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005451/0.3284, allocations: 413.4 kB / 402.5 MB, free: 8.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004297/0.3289, allocations: 218.6 kB / 402.7 MB, free: 8.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.234e-06/0.3289, allocations: 4 kB / 402.7 MB, free: 8.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001292/0.3302, allocations: 0.5731 MB / 403.3 MB, free: 7.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003465/0.3306, allocations: 403 kB / 403.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.3306, allocations: 12 kB / 403.7 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.3306, allocations: 12 kB / 403.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.3322, allocations: 223.6 kB / 403.9 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006121/0.3329, allocations: 0.6133 MB / 404.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.3335, allocations: 83.36 kB / 404.6 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.589e-05/0.3336, allocations: 39.94 kB / 404.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.3336, allocations: 7.938 kB / 404.7 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001144/0.3348, allocations: 0.5371 MB / 405.2 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.3348, allocations: 8 kB / 405.2 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3348, allocations: 12 kB / 405.2 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.3353, allocations: 139.7 kB / 405.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.374e-05/0.3354, allocations: 19.92 kB / 405.4 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.3358, allocations: 55.58 kB / 405.4 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/0.3358, allocations: 40.14 kB / 405.5 MB, free: 5.453 MB / 330.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: 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 (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.0004406/0.3363, allocations: 318 kB / 405.8 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3364, allocations: 51.34 kB / 405.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.3382, allocations: 0.6705 MB / 406.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.3383, allocations: 4 kB / 406.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.125e-06/0.3383, allocations: 0 / 406.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.217e-06/0.3383, allocations: 0 / 406.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.3391, allocations: 0.4892 MB / 407 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.64e-06/0.3391, allocations: 4 kB / 407 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.3399, allocations: 107.9 kB / 407.1 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3399, allocations: 3.938 kB / 407.1 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.34, allocations: 15.98 kB / 407.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004773/0.3404, allocations: 0.5937 MB / 407.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.537e-06/0.3405, allocations: 0 / 407.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.3413, allocations: 430.7 kB / 408.1 MB, free: 2.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003074/0.3416, allocations: 200.1 kB / 408.3 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3418, allocations: 8 kB / 408.3 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.342, allocations: 20.12 kB / 408.3 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.438e-05/0.3421, allocations: 27.95 kB / 408.4 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.655e-05/0.3422, allocations: 19.98 kB / 408.4 MB, free: 2.375 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000592/0.3428, allocations: 350.8 kB / 408.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.3428, allocations: 0 / 408.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00151/0.3443, allocations: 395.4 kB / 409.1 MB, free: 1.648 MB / 330.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: 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 (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.0007946/0.3451, allocations: 294.2 kB / 409.4 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.348, allocations: 0.8991 MB / 410.3 MB, free: 448 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.595e-06/0.3481, allocations: 0 / 410.3 MB, free: 448 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.3492, allocations: 348.3 kB / 410.7 MB, free: 88 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.3503, allocations: 206.1 kB / 410.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.3528, allocations: 1.263 MB / 412.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.3535, allocations: 0.9039 MB / 413 MB, free: 13.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.3537, allocations: 71.41 kB / 413.1 MB, free: 13.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.59e-06/0.3538, allocations: 0 / 413.1 MB, free: 13.58 MB / 346.7 MB Notification: Performance of Templates: time 0.02347/0.3772, allocations: 12.92 MB / 426 MB, free: 0.6758 MB / 346.7 MB