Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test72,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|startTime.nextTimeEvent|startTime_0.nextTimeEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test72") Notification: Performance of loadModel(ModelicaTest): time 1.909/1.909, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004331/0.0004332, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3427, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4741, allocations: 75.72 MB / 407.5 MB, free: 2.711 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4745, allocations: 71.97 kB / 407.6 MB, free: 2.641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02296/0.4974, allocations: 5.499 MB / 413.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4975, allocations: 4 kB / 413.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.4975, allocations: 8 kB / 413.1 MB, free: 13.14 MB / 346.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.001254/0.4988, allocations: 0.7461 MB / 413.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4989, allocations: 8.031 kB / 413.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.499, allocations: 51.42 kB / 413.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.5001, allocations: 455.1 kB / 414.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.5001, allocations: 4 kB / 414.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.5001, allocations: 4 kB / 414.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.5003, allocations: 71.38 kB / 414.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.5004, allocations: 0 / 414.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.5004, allocations: 0 / 414.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5004, allocations: 4 kB / 414.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.5005, allocations: 27.91 kB / 414.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005719/0.5011, allocations: 378.3 kB / 414.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.5013, allocations: 61.2 kB / 414.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.5013, allocations: 4.062 kB / 414.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.5015, allocations: 93.03 kB / 415 MB, free: 11.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.134e-06/0.5015, allocations: 0 / 415 MB, free: 11.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005127/0.5021, allocations: 157 kB / 415.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.5021, allocations: 77.11 kB / 415.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/0.5043, allocations: 0.983 MB / 416.2 MB, free: 9.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.5044, allocations: 29.7 kB / 416.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.5046, allocations: 250.5 kB / 416.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.117e-05/0.5047, allocations: 19.75 kB / 416.5 MB, free: 9.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.5047, allocations: 4 kB / 416.5 MB, free: 9.496 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5048, allocations: 322.8 kB / 416.8 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.505, allocations: 39.98 kB / 416.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.5051, allocations: 53.69 kB / 416.9 MB, free: 9.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.5053, allocations: 99.34 kB / 417 MB, free: 8.965 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/0.5053, allocations: 0 / 417 MB, free: 8.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004479/0.5058, allocations: 197 kB / 417.2 MB, free: 8.754 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-05/0.5059, allocations: 67.39 kB / 417.3 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.5059, allocations: 0 / 417.3 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.5059, allocations: 0 / 417.3 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.5061, allocations: 19.92 kB / 417.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.5061, allocations: 4 kB / 417.3 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.5063, allocations: 11.91 kB / 417.3 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.5064, allocations: 4 kB / 417.3 MB, free: 8.637 MB / 346.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: 6 ($whenCondition2,$PRE.startTime.nextTimeEvent,startTime.nextTimeEvent,$whenCondition1,$PRE.startTime_0.nextTimeEvent,startTime_0.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * 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.0003766/0.5067, allocations: 225.7 kB / 417.5 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.5069, allocations: 47.44 kB / 417.6 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004382/0.5073, allocations: 161.2 kB / 417.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.5074, allocations: 0 / 417.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5074, allocations: 0 / 417.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.5074, allocations: 4 kB / 417.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.5079, allocations: 369.3 kB / 418.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5079, allocations: 0 / 418.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.555e-05/0.508, allocations: 7.984 kB / 418.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.5081, allocations: 4 kB / 418.1 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.5081, allocations: 0 / 418.1 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.5081, allocations: 0 / 418.1 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5081, allocations: 4 kB / 418.1 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004021/0.5085, allocations: 177.3 kB / 418.3 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.5089, allocations: 185 kB / 418.5 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.509, allocations: 4 kB / 418.5 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.5092, allocations: 4.094 kB / 418.5 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.5092, allocations: 15.92 kB / 418.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.5093, allocations: 4 kB / 418.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001461/0.5107, allocations: 0.7252 MB / 419.2 MB, free: 6.617 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5108, allocations: 0 / 419.2 MB, free: 6.617 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006045/0.5114, allocations: 99.94 kB / 419.3 MB, free: 6.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,startTime.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEvent) * Number of discrete states: 2 (startTime_0.nextTimeEvent,startTime.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.001432/0.5128, allocations: 495.4 kB / 419.8 MB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004581/0.5133, allocations: 198.8 kB / 420 MB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5134, allocations: 0 / 420 MB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.5135, allocations: 31.92 kB / 420 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000551/0.514, allocations: 54.17 kB / 420.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.5163, allocations: 0.9851 MB / 421.1 MB, free: 4.789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.5169, allocations: 0.8429 MB / 421.9 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.5171, allocations: 39.42 kB / 421.9 MB, free: 3.883 MB / 346.7 MB Notification: Performance of SimCode: time 1.432e-06/0.5171, allocations: 0 / 421.9 MB, free: 3.883 MB / 346.7 MB Notification: Performance of Templates: time 0.01409/0.5312, allocations: 5.49 MB / 427.4 MB, free: 14.39 MB / 362.7 MB