Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.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.Tables.CombiTimeTable.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|t_new.nextTimeEvent|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test14") Notification: Performance of loadModel(ModelicaTest): time 2.392/2.392, allocations: 234.9 MB / 250.5 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004448, allocations: 12 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2782, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002601/0.2808, allocations: 1.586 MB / 370.8 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2825, allocations: 0.7968 MB / 371.6 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2827, allocations: 0 / 371.6 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.283, allocations: 35.78 kB / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.2832, allocations: 47.86 kB / 371.7 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.2836, allocations: 75.78 kB / 371.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.2838, allocations: 119.8 kB / 371.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.284, allocations: 25.55 kB / 371.9 MB, free: 8.008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.2841, allocations: 71.69 kB / 371.9 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.2843, allocations: 63.73 kB / 372 MB, free: 7.875 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.2843, allocations: 8 kB / 372 MB, free: 7.867 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.2845, allocations: 31.92 kB / 372 MB, free: 7.836 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.941e-05/0.2845, allocations: 31.84 kB / 372.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.2846, allocations: 45.64 kB / 372.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.2849, allocations: 132.4 kB / 372.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.689e-06/0.2849, allocations: 0 / 372.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.98e-06/0.2849, allocations: 0 / 372.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.555e-06/0.2849, allocations: 0 / 372.3 MB, free: 7.625 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001039/0.286, allocations: 0.591 MB / 372.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.286, allocations: 12.03 kB / 372.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.2861, allocations: 15.81 kB / 372.9 MB, free: 6.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.2865, allocations: 234.6 kB / 373.1 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.2865, allocations: 8 kB / 373.1 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.2866, allocations: 8 kB / 373.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.2871, allocations: 134.1 kB / 373.2 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.674e-06/0.2871, allocations: 4 kB / 373.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.2871, allocations: 4 kB / 373.3 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2871, allocations: 11.89 kB / 373.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005756/0.2877, allocations: 139.8 kB / 373.4 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007472/0.2885, allocations: 380.6 kB / 373.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008324/0.2894, allocations: 194.5 kB / 374 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.2894, allocations: 8 kB / 374 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005064/0.2899, allocations: 143.3 kB / 374.1 MB, free: 5.574 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 7.814e-06/0.29, allocations: 3.984 kB / 374.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.00115/0.2911, allocations: 297.2 kB / 374.4 MB, free: 5.273 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.2912, allocations: 59.41 kB / 374.5 MB, free: 5.203 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.2915, allocations: 206.5 kB / 374.7 MB, free: 4.988 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.2916, allocations: 33.7 kB / 374.7 MB, free: 4.949 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2917, allocations: 170.3 kB / 374.9 MB, free: 4.781 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.669e-05/0.2918, allocations: 39.59 kB / 374.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-05/0.2918, allocations: 4 kB / 374.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.292, allocations: 322.8 kB / 375.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.2923, allocations: 84.12 kB / 375.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.2927, allocations: 120.9 kB / 375.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.2931, allocations: 143.3 kB / 375.6 MB, free: 4.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.802e-06/0.2932, allocations: 0 / 375.6 MB, free: 4.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009276/0.2941, allocations: 311.9 kB / 375.9 MB, free: 3.734 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.129e-05/0.2942, allocations: 67.39 kB / 375.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.241e-06/0.2942, allocations: 0 / 375.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.2942, allocations: 3.953 kB / 375.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.2945, allocations: 47.97 kB / 376 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.246e-06/0.2945, allocations: 0 / 376 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.2948, allocations: 39.81 kB / 376 MB, free: 3.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.2948, allocations: 8 kB / 376 MB, free: 3.559 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new.nextTimeEvent,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001844/0.295, allocations: 137.8 kB / 376.2 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.2951, allocations: 19.75 kB / 376.2 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.2951, allocations: 25.33 kB / 376.2 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2952, allocations: 0 / 376.2 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.56e-06/0.2952, allocations: 3.953 kB / 376.2 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2952, allocations: 0 / 376.2 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.2955, allocations: 229.6 kB / 376.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.418e-06/0.2955, allocations: 0 / 376.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.2957, allocations: 31.97 kB / 376.5 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.555e-06/0.2958, allocations: 0 / 376.5 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.2958, allocations: 8 kB / 376.5 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.646e-06/0.2958, allocations: 0 / 376.5 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.251e-06/0.2958, allocations: 0 / 376.5 MB, free: 3.059 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.297, allocations: 340.7 kB / 376.8 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.2972, allocations: 120.7 kB / 376.9 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.2972, allocations: 8 kB / 376.9 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.2974, allocations: 23.97 kB / 377 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.6e-05/0.2975, allocations: 28.03 kB / 377 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.2976, allocations: 4 kB / 377 MB, free: 2.508 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.2978, allocations: 156.2 kB / 377.1 MB, free: 2.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.2978, allocations: 0 / 377.1 MB, free: 2.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003597/0.2982, allocations: 43.89 kB / 377.2 MB, free: 2.312 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001355/0.2995, allocations: 400.7 kB / 377.6 MB, free: 2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009121/0.3005, allocations: 326.5 kB / 377.9 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3005, allocations: 0 / 377.9 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.3009, allocations: 92 kB / 378 MB, free: 1.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.3012, allocations: 39.7 kB / 378 MB, free: 1.527 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.3021, allocations: 363.8 kB / 378.4 MB, free: 1.141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.3026, allocations: 0.7282 MB / 379.1 MB, free: 396 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.556e-05/0.3027, allocations: 15.44 kB / 379.1 MB, free: 380 kB / 298.7 MB Notification: Performance of SimCode: time 1.715e-06/0.3027, allocations: 0 / 379.1 MB, free: 380 kB / 298.7 MB Notification: Performance of Templates: time 0.006059/0.3087, allocations: 2.628 MB / 381.7 MB, free: 13.75 MB / 314.7 MB