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.Test39.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.Test39,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.Test39") Notification: Performance of loadModel(ModelicaTest): time 1.998/1.998, allocations: 209.3 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 16 kB / 282.5 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2852, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test39): time 0.001924/0.2872, allocations: 1.258 MB / 332.5 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008098/0.288, allocations: 404.5 kB / 332.9 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.2881, allocations: 0 / 332.9 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.2884, allocations: 55.14 kB / 332.9 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.2886, allocations: 42.45 kB / 332.9 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.2888, allocations: 56.52 kB / 333 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.2889, allocations: 52.03 kB / 333.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.815e-05/0.289, allocations: 3.938 kB / 333.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.534e-05/0.289, allocations: 26.34 kB / 333.1 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.67e-05/0.2891, allocations: 38.5 kB / 333.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.2892, allocations: 2.344 kB / 333.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.938e-05/0.2893, allocations: 15.92 kB / 333.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.118e-05/0.2893, allocations: 14.08 kB / 333.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/0.2894, allocations: 36.81 kB / 333.2 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.2896, allocations: 70.77 kB / 333.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.2896, allocations: 0 / 333.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.77e-06/0.2896, allocations: 1.312 kB / 333.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.872e-06/0.2896, allocations: 0 / 333.3 MB, free: 5.395 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.0003788/0.29, allocations: 398.5 kB / 333.6 MB, free: 4.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.29, allocations: 9.438 kB / 333.7 MB, free: 4.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.2901, allocations: 8.266 kB / 333.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.2903, allocations: 193.9 kB / 333.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.2903, allocations: 5.531 kB / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.2903, allocations: 1 kB / 333.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.2904, allocations: 43.88 kB / 333.9 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.521e-06/0.2905, allocations: 3.938 kB / 333.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.476e-06/0.2905, allocations: 0.7031 kB / 333.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.882e-06/0.2905, allocations: 1.406 kB / 333.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.375e-05/0.2905, allocations: 5.203 kB / 333.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.2907, allocations: 180.5 kB / 334.1 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.603e-05/0.2908, allocations: 31.41 kB / 334.1 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.2908, allocations: 0 / 334.1 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001344/0.291, allocations: 59.02 kB / 334.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.162e-06/0.291, allocations: 0 / 334.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002128/0.2912, allocations: 60.2 kB / 334.2 MB, free: 4.391 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.372e-05/0.2913, allocations: 61.53 kB / 334.3 MB, free: 4.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.2914, allocations: 167.5 kB / 334.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.2915, allocations: 31.2 kB / 334.5 MB, free: 4.168 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.346e-05/0.2915, allocations: 155.8 kB / 334.6 MB, free: 4.016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.2916, allocations: 11.89 kB / 334.7 MB, free: 4.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.737e-06/0.2916, allocations: 0 / 334.7 MB, free: 4.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.2916, allocations: 313 kB / 335 MB, free: 3.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.528e-05/0.2917, allocations: 16.62 kB / 335 MB, free: 3.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.075e-05/0.2918, allocations: 14.75 kB / 335 MB, free: 3.684 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.184e-05/0.2918, allocations: 47.16 kB / 335 MB, free: 3.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.568e-06/0.2918, allocations: 7.953 kB / 335 MB, free: 3.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001681/0.292, allocations: 97.97 kB / 335.1 MB, free: 3.555 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.2921, allocations: 39.5 kB / 335.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.965e-06/0.2921, allocations: 0.75 kB / 335.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2921, allocations: 0 / 335.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.13e-05/0.2922, allocations: 5.953 kB / 335.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.987e-06/0.2922, allocations: 1.094 kB / 335.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.25e-05/0.2923, allocations: 7.266 kB / 335.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.2923, allocations: 2.125 kB / 335.2 MB, free: 3.516 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.464e-05/0.2924, allocations: 128.2 kB / 335.3 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.2924, allocations: 12.5 kB / 335.3 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.2925, allocations: 9.625 kB / 335.3 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.337e-06/0.2925, allocations: 4 kB / 335.3 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.415e-06/0.2925, allocations: 4.781 kB / 335.4 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.442e-06/0.2925, allocations: 1.188 kB / 335.4 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.2926, allocations: 175.4 kB / 335.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.113e-06/0.2926, allocations: 1.156 kB / 335.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.293e-05/0.2927, allocations: 5.297 kB / 335.5 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.609e-06/0.2927, allocations: 1.375 kB / 335.5 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.732e-06/0.2927, allocations: 0.5156 kB / 335.5 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.508e-06/0.2927, allocations: 9.594 kB / 335.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.64e-06/0.2927, allocations: 0.6562 kB / 335.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.2929, allocations: 82.02 kB / 335.6 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-05/0.2929, allocations: 83.56 kB / 335.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.293, allocations: 6.188 kB / 335.7 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.64e-05/0.293, allocations: 1.469 kB / 335.7 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.432e-05/0.2931, allocations: 10.42 kB / 335.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.2931, allocations: 6.297 kB / 335.7 MB, free: 2.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.2932, allocations: 133.9 kB / 335.9 MB, free: 2.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.2932, allocations: 0 / 335.9 MB, free: 2.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003064/0.2935, allocations: 20.36 kB / 335.9 MB, free: 2.871 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.0009404/0.2945, allocations: 331 kB / 336.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.2947, allocations: 89.66 kB / 336.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.55e-06/0.2947, allocations: 1.156 kB / 336.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.268e-05/0.2947, allocations: 15.5 kB / 336.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.295, allocations: 19.73 kB / 336.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.2954, allocations: 201.7 kB / 336.5 MB, free: 2.414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2955, allocations: 0.6954 MB / 337.2 MB, free: 1.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.2956, allocations: 19.84 kB / 337.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.2956, allocations: 0 / 337.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of Templates: time 0.003723/0.2993, allocations: 1.447 MB / 338.7 MB, free: 1.293 MB / 266.7 MB