Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.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.Tables.CombiTimeTable.Test37,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37") Notification: Performance of loadModel(ModelicaTest): time 1.878/1.878, allocations: 209.3 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004583, allocations: 12 kB / 282.5 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2902, allocations: 48.7 MB / 331.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test37): time 0.001802/0.292, allocations: 1.266 MB / 332.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007734/0.2928, allocations: 396.4 kB / 332.8 MB, free: 5.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.824e-05/0.2929, allocations: 0 / 332.8 MB, free: 5.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002503/0.2931, allocations: 54.2 kB / 332.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.2933, allocations: 45.47 kB / 332.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.2935, allocations: 53.72 kB / 333 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.2936, allocations: 47.97 kB / 333 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.2937, allocations: 11.45 kB / 333.1 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.666e-05/0.2938, allocations: 35.16 kB / 333.1 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.361e-05/0.2939, allocations: 29.97 kB / 333.1 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.2939, allocations: 1.281 kB / 333.1 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.873e-05/0.294, allocations: 17.27 kB / 333.1 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.116e-05/0.2941, allocations: 20.75 kB / 333.2 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.2941, allocations: 29.98 kB / 333.2 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.2943, allocations: 66.47 kB / 333.2 MB, free: 5.441 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.569e-06/0.2943, allocations: 0 / 333.2 MB, free: 5.441 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.15e-06/0.2943, allocations: 1.219 kB / 333.2 MB, free: 5.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.882e-06/0.2943, allocations: 4 kB / 333.3 MB, free: 5.438 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003877/0.2947, allocations: 399.2 kB / 333.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2948, allocations: 8.75 kB / 333.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.2948, allocations: 9.172 kB / 333.7 MB, free: 5.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.295, allocations: 202.4 kB / 333.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.876e-06/0.295, allocations: 0 / 333.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.295, allocations: 2.406 kB / 333.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.2952, allocations: 38.75 kB / 333.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.484e-06/0.2952, allocations: 5.953 kB / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.913e-06/0.2952, allocations: 0 / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.485e-06/0.2952, allocations: 0 / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.628e-05/0.2953, allocations: 6.719 kB / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.2954, allocations: 183.9 kB / 334.1 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.563e-05/0.2955, allocations: 30.81 kB / 334.1 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.2956, allocations: 1.031 kB / 334.1 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.2957, allocations: 63.08 kB / 334.2 MB, free: 4.465 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.316e-06/0.2957, allocations: 0 / 334.2 MB, free: 4.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002054/0.2959, allocations: 64.31 kB / 334.2 MB, free: 4.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.414e-05/0.296, allocations: 61.2 kB / 334.3 MB, free: 4.352 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.2962, allocations: 163.2 kB / 334.5 MB, free: 4.238 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.2962, allocations: 31.05 kB / 334.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.2963, allocations: 157.4 kB / 334.6 MB, free: 4.051 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.2963, allocations: 10.12 kB / 334.7 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.297e-06/0.2963, allocations: 5.219 kB / 334.7 MB, free: 4.039 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.2964, allocations: 312.1 kB / 335 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.787e-05/0.2964, allocations: 13.81 kB / 335 MB, free: 3.723 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.094e-05/0.2965, allocations: 13.42 kB / 335 MB, free: 3.719 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.952e-05/0.2966, allocations: 44.3 kB / 335 MB, free: 3.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.177e-06/0.2966, allocations: 3.953 kB / 335 MB, free: 3.676 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001649/0.2967, allocations: 97.94 kB / 335.1 MB, free: 3.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.447e-05/0.2968, allocations: 38.14 kB / 335.2 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.966e-06/0.2968, allocations: 0.75 kB / 335.2 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2968, allocations: 7.938 kB / 335.2 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.2969, allocations: 5.797 kB / 335.2 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.2969, allocations: 0.7969 kB / 335.2 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.297, allocations: 6.875 kB / 335.2 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.297, allocations: 3.422 kB / 335.2 MB, free: 3.551 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.396e-05/0.2971, allocations: 121.5 kB / 335.3 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.2971, allocations: 10.92 kB / 335.3 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.2972, allocations: 9 kB / 335.3 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.482e-06/0.2972, allocations: 0 / 335.3 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-06/0.2972, allocations: 5.531 kB / 335.3 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.671e-06/0.2972, allocations: 0.8906 kB / 335.3 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.2974, allocations: 175.2 kB / 335.5 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-06/0.2974, allocations: 3.938 kB / 335.5 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.716e-05/0.2974, allocations: 11.08 kB / 335.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2974, allocations: 0 / 335.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2975, allocations: 1.984 kB / 335.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2975, allocations: 0.9375 kB / 335.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-06/0.2975, allocations: 0 / 335.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.2976, allocations: 90.08 kB / 335.6 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.413e-05/0.2977, allocations: 84.41 kB / 335.7 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.2977, allocations: 6.453 kB / 335.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.394e-05/0.2978, allocations: 1.281 kB / 335.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.2978, allocations: 6.531 kB / 335.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.2978, allocations: 2.438 kB / 335.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000113/0.298, allocations: 134.6 kB / 335.9 MB, free: 2.922 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.298, allocations: 0 / 335.9 MB, free: 2.922 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002923/0.2983, allocations: 23.06 kB / 335.9 MB, free: 2.914 MB / 266.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009666/0.2992, allocations: 341.2 kB / 336.2 MB, free: 2.703 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.2995, allocations: 93.44 kB / 336.3 MB, free: 2.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.813e-06/0.2995, allocations: 1.125 kB / 336.3 MB, free: 2.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.562e-05/0.2996, allocations: 11.89 kB / 336.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.2998, allocations: 17.56 kB / 336.3 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004007/0.3002, allocations: 206.6 kB / 336.5 MB, free: 2.445 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001506/0.3004, allocations: 0.6952 MB / 337.2 MB, free: 1.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.3005, allocations: 15.81 kB / 337.2 MB, free: 1.738 MB / 266.7 MB Notification: Performance of SimCode: time 1.321e-06/0.3005, allocations: 0 / 337.2 MB, free: 1.738 MB / 266.7 MB Notification: Performance of Templates: time 0.00373/0.3042, allocations: 1.439 MB / 338.7 MB, free: 1.328 MB / 266.7 MB