Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test37") Notification: Performance of loadModel(ModelicaTest): time 2.569/2.569, allocations: 234.9 MB / 251.1 MB, free: 10.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006216/0.0006218, allocations: 12 kB / 314.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4154, allocations: 54.87 MB / 369.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1902/0.6056, allocations: 81.96 MB / 451.8 MB, free: 8.766 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003745/0.6061, allocations: 83.89 kB / 451.9 MB, free: 8.684 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2331:7-2332:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValueNoDer. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.02585/0.632, allocations: 4.417 MB / 456.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.632, allocations: 3.938 kB / 456.3 MB, free: 4.254 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.632, allocations: 0 / 456.3 MB, free: 4.254 MB / 378.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.0008141/0.6329, allocations: 462.2 kB / 456.7 MB, free: 3.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.6329, allocations: 12.03 kB / 456.7 MB, free: 3.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.792e-05/0.633, allocations: 11.81 kB / 456.8 MB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.6335, allocations: 203.6 kB / 457 MB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.6336, allocations: 7.984 kB / 457 MB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.6336, allocations: 4 kB / 457 MB, free: 3.469 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.6339, allocations: 53.61 kB / 457 MB, free: 3.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.6339, allocations: 4 kB / 457 MB, free: 3.406 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.6339, allocations: 7.953 kB / 457 MB, free: 3.398 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.634, allocations: 0 / 457 MB, free: 3.398 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.6341, allocations: 15.98 kB / 457 MB, free: 3.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.6345, allocations: 201.6 kB / 457.2 MB, free: 3.137 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.6348, allocations: 50.61 kB / 457.3 MB, free: 3.078 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.6349, allocations: 3.938 kB / 457.3 MB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.6351, allocations: 71.39 kB / 457.4 MB, free: 2.992 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 2.534e-06/0.6352, allocations: 0 / 457.4 MB, free: 2.992 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005514/0.6357, allocations: 101.6 kB / 457.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.6358, allocations: 55.36 kB / 457.5 MB, free: 2.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.6362, allocations: 178.9 kB / 457.7 MB, free: 2.637 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.6362, allocations: 37.64 kB / 457.7 MB, free: 2.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.6363, allocations: 162.5 kB / 457.9 MB, free: 2.434 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.492e-05/0.6364, allocations: 15.84 kB / 457.9 MB, free: 2.418 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.6364, allocations: 0 / 457.9 MB, free: 2.418 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.6366, allocations: 322.8 kB / 458.2 MB, free: 2.094 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.6368, allocations: 31.92 kB / 458.2 MB, free: 2.062 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.637, allocations: 45.7 kB / 458.3 MB, free: 2.012 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.6373, allocations: 65.69 kB / 458.4 MB, free: 1.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6373, allocations: 4 kB / 458.4 MB, free: 1.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005842/0.6379, allocations: 151.2 kB / 458.5 MB, free: 1.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.532e-05/0.638, allocations: 41.62 kB / 458.5 MB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.638, allocations: 0 / 458.5 MB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.6381, allocations: 0 / 458.5 MB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.6382, allocations: 15.98 kB / 458.6 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.6382, allocations: 3.953 kB / 458.6 MB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.6384, allocations: 8 kB / 458.6 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.6385, allocations: 4.312 kB / 458.6 MB, free: 1.699 MB / 378.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.0002001/0.6387, allocations: 133.8 kB / 458.7 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.172e-05/0.6387, allocations: 11.81 kB / 458.7 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004202/0.6392, allocations: 97.98 kB / 458.8 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.6392, allocations: 0 / 458.8 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.6392, allocations: 0 / 458.8 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.6392, allocations: 3.953 kB / 458.8 MB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.6395, allocations: 189.6 kB / 459 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.6395, allocations: 0 / 459 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.6396, allocations: 7.938 kB / 459 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.6396, allocations: 4 kB / 459 MB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.6396, allocations: 4 kB / 459 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.6397, allocations: 0 / 459 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.6397, allocations: 3.984 kB / 459 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003831/0.6401, allocations: 113 kB / 459.1 MB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.6402, allocations: 97 kB / 459.2 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.6403, allocations: 0 / 459.2 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.6404, allocations: 8 kB / 459.2 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.6404, allocations: 3.984 kB / 459.2 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.6405, allocations: 11.98 kB / 459.3 MB, free: 0.918 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.6407, allocations: 135.2 kB / 459.4 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.016e-06/0.6408, allocations: 0 / 459.4 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000543/0.6413, allocations: 27.94 kB / 459.4 MB, free: 0.7578 MB / 378.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.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.001686/0.643, allocations: 419.9 kB / 459.8 MB, free: 424 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.6436, allocations: 143.4 kB / 460 MB, free: 268 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.6436, allocations: 0 / 460 MB, free: 268 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.6438, allocations: 27.92 kB / 460 MB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.6442, allocations: 27.91 kB / 460 MB, free: 212 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006559/0.6448, allocations: 246.8 kB / 460.3 MB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.6452, allocations: 0.7082 MB / 461 MB, free: 15.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.44e-05/0.6453, allocations: 11.44 kB / 461 MB, free: 15.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6453, allocations: 0 / 461 MB, free: 15.19 MB / 394.7 MB Notification: Performance of Templates: time 0.005474/0.6508, allocations: 1.702 MB / 462.7 MB, free: 13.49 MB / 394.7 MB