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.Test39.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.Test39,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test39") Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004495, allocations: 16 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2856, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test39): time 0.002192/0.2878, allocations: 1.314 MB / 370.5 MB, free: 9.363 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.2893, allocations: 0.7007 MB / 371.2 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.194e-05/0.2894, allocations: 7.938 kB / 371.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/0.2897, allocations: 51.86 kB / 371.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.2899, allocations: 47.86 kB / 371.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.2901, allocations: 47.83 kB / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.2903, allocations: 63.84 kB / 371.4 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.581e-05/0.2903, allocations: 7.859 kB / 371.4 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.2905, allocations: 43.83 kB / 371.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.693e-05/0.2906, allocations: 35.84 kB / 371.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.2906, allocations: 8 kB / 371.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-05/0.2907, allocations: 19.98 kB / 371.5 MB, free: 8.328 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.356e-05/0.2907, allocations: 11.98 kB / 371.5 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.364e-05/0.2908, allocations: 37.64 kB / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.291, allocations: 75.89 kB / 371.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.493e-06/0.291, allocations: 0 / 371.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.291, allocations: 0 / 371.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.291, allocations: 0 / 371.7 MB, free: 8.199 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005929/0.2916, allocations: 447 kB / 372.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2917, allocations: 12.03 kB / 372.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.66e-05/0.2917, allocations: 7.906 kB / 372.1 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.292, allocations: 202.8 kB / 372.3 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.2921, allocations: 3.984 kB / 372.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.2921, allocations: 4 kB / 372.3 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001618/0.2923, allocations: 41.69 kB / 372.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2923, allocations: 0 / 372.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.2923, allocations: 15.97 kB / 372.4 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2923, allocations: 3.953 kB / 372.4 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.664e-05/0.2924, allocations: 12 kB / 372.4 MB, free: 7.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002529/0.2927, allocations: 193.6 kB / 372.6 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.2929, allocations: 54.55 kB / 372.6 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.293, allocations: 0 / 372.6 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.2932, allocations: 63.39 kB / 372.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 2.51e-06/0.2932, allocations: 4 kB / 372.7 MB, free: 6.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003652/0.2936, allocations: 97.52 kB / 372.8 MB, free: 6.879 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.2937, allocations: 55.36 kB / 372.9 MB, free: 6.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.2939, allocations: 194 kB / 373 MB, free: 6.613 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.2939, allocations: 25.7 kB / 373.1 MB, free: 6.582 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.2941, allocations: 166.5 kB / 373.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.2941, allocations: 11.81 kB / 373.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.2941, allocations: 4 kB / 373.2 MB, free: 6.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.2943, allocations: 318.8 kB / 373.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-05/0.2944, allocations: 27.92 kB / 373.6 MB, free: 6.055 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.2945, allocations: 41.7 kB / 373.6 MB, free: 6.008 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.2947, allocations: 53.7 kB / 373.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.205e-06/0.2947, allocations: 0 / 373.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000315/0.295, allocations: 131.2 kB / 373.8 MB, free: 5.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/0.2951, allocations: 37.69 kB / 373.8 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.632e-06/0.2951, allocations: 4.031 kB / 373.8 MB, free: 5.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.2951, allocations: 4 kB / 373.8 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/0.2953, allocations: 11.94 kB / 373.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2953, allocations: 0 / 373.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.397e-05/0.2954, allocations: 11.89 kB / 373.9 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.2954, allocations: 7.984 kB / 373.9 MB, free: 5.727 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,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 (8): * Single equations (assignments): 7 * 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 0.0001347/0.2955, allocations: 121.8 kB / 374 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.2956, allocations: 7.906 kB / 374 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.422e-05/0.2956, allocations: 16.3 kB / 374 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.548e-06/0.2957, allocations: 4 kB / 374 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.665e-06/0.2957, allocations: 0 / 374 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.597e-06/0.2957, allocations: 320 / 374 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.2959, allocations: 193.5 kB / 374.2 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-06/0.2959, allocations: 4 kB / 374.2 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.084e-05/0.296, allocations: 4 kB / 374.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.081e-06/0.296, allocations: 0 / 374.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.883e-06/0.296, allocations: 0 / 374.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.159e-06/0.296, allocations: 0 / 374.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.036e-06/0.296, allocations: 0 / 374.2 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.2963, allocations: 124.9 kB / 374.3 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.37e-05/0.2964, allocations: 92.94 kB / 374.4 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.2965, allocations: 4 kB / 374.4 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.2965, allocations: 0 / 374.4 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.2966, allocations: 7.984 kB / 374.4 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.2966, allocations: 4 kB / 374.5 MB, free: 5.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001557/0.2968, allocations: 131.2 kB / 374.6 MB, free: 4.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.2968, allocations: 4 kB / 374.6 MB, free: 4.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003107/0.2971, allocations: 23.98 kB / 374.6 MB, free: 4.906 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: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001336/0.2984, allocations: 397.8 kB / 375 MB, free: 4.602 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003347/0.2988, allocations: 139.3 kB / 375.1 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2988, allocations: 0 / 375.1 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.712e-05/0.2989, allocations: 19.98 kB / 375.2 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.2992, allocations: 19.94 kB / 375.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005155/0.2997, allocations: 239.1 kB / 375.4 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3001, allocations: 0.7004 MB / 376.1 MB, free: 3.426 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.3002, allocations: 11.44 kB / 376.1 MB, free: 3.414 MB / 298.7 MB Notification: Performance of SimCode: time 1.519e-06/0.3002, allocations: 3.938 kB / 376.1 MB, free: 3.41 MB / 298.7 MB Notification: Performance of Templates: time 0.004205/0.3044, allocations: 1.631 MB / 377.8 MB, free: 1.781 MB / 298.7 MB