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.Test38.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.Test38,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.Test38") Notification: Performance of loadModel(ModelicaTest): time 2.439/2.439, allocations: 234.9 MB / 251.1 MB, free: 10.67 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004335, allocations: 20 kB / 314.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3949, allocations: 54.86 MB / 369.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.6124, allocations: 81.97 MB / 451.8 MB, free: 8.801 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003961/0.6128, allocations: 75.97 kB / 451.8 MB, free: 8.727 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.02741/0.6403, allocations: 4.432 MB / 456.3 MB, free: 4.285 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6403, allocations: 0 / 456.3 MB, free: 4.285 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.6404, allocations: 4 kB / 456.3 MB, free: 4.281 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.0009327/0.6413, allocations: 463.9 kB / 456.7 MB, free: 3.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.6414, allocations: 8.031 kB / 456.7 MB, free: 3.762 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.6415, allocations: 15.81 kB / 456.8 MB, free: 3.746 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.6421, allocations: 203 kB / 457 MB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.6421, allocations: 0 / 457 MB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.6422, allocations: 8 kB / 457 MB, free: 3.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.6424, allocations: 49.67 kB / 457 MB, free: 3.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.6425, allocations: 0 / 457 MB, free: 3.445 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.6425, allocations: 3.953 kB / 457 MB, free: 3.441 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.6425, allocations: 0 / 457 MB, free: 3.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.6427, allocations: 23.92 kB / 457 MB, free: 3.418 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.6431, allocations: 197.6 kB / 457.2 MB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003507/0.6435, allocations: 62.61 kB / 457.3 MB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.6436, allocations: 0 / 457.3 MB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.6439, allocations: 63.39 kB / 457.4 MB, free: 3.031 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 2.785e-06/0.6439, allocations: 0 / 457.4 MB, free: 3.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006213/0.6445, allocations: 101.5 kB / 457.5 MB, free: 2.926 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.6446, allocations: 55.36 kB / 457.5 MB, free: 2.859 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.645, allocations: 186.9 kB / 457.7 MB, free: 2.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.6451, allocations: 29.64 kB / 457.7 MB, free: 2.629 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.6452, allocations: 170.5 kB / 457.9 MB, free: 2.461 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/0.6453, allocations: 15.84 kB / 457.9 MB, free: 2.445 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.6453, allocations: 0 / 457.9 MB, free: 2.445 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.6455, allocations: 314.8 kB / 458.2 MB, free: 2.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.6458, allocations: 31.92 kB / 458.2 MB, free: 2.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.646, allocations: 49.69 kB / 458.3 MB, free: 2.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.6463, allocations: 69.69 kB / 458.4 MB, free: 1.969 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.237e-06/0.6463, allocations: 3.938 kB / 458.4 MB, free: 1.965 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0006438/0.6469, allocations: 155.2 kB / 458.5 MB, free: 1.801 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.647, allocations: 33.69 kB / 458.5 MB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.6471, allocations: 4 kB / 458.5 MB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.6471, allocations: 0 / 458.5 MB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.6473, allocations: 8 kB / 458.6 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.6473, allocations: 3.953 kB / 458.6 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.6475, allocations: 16.33 kB / 458.6 MB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.6475, allocations: 11.98 kB / 458.6 MB, free: 1.719 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.000212/0.6478, allocations: 117.8 kB / 458.7 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.277e-05/0.6478, allocations: 11.81 kB / 458.7 MB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004884/0.6483, allocations: 101.9 kB / 458.8 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.6484, allocations: 0 / 458.8 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.6484, allocations: 4 kB / 458.8 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.6484, allocations: 3.953 kB / 458.8 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.6488, allocations: 193.5 kB / 459 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.6488, allocations: 4 kB / 459 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.559e-05/0.6489, allocations: 8 kB / 459 MB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.6489, allocations: 0 / 459 MB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.649, allocations: 3.938 kB / 459 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.649, allocations: 0 / 459 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.649, allocations: 4 kB / 459 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004845/0.6495, allocations: 116.9 kB / 459.1 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.6497, allocations: 93 kB / 459.2 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.6497, allocations: 8 kB / 459.2 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.6499, allocations: 3.984 kB / 459.2 MB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.862e-05/0.6499, allocations: 4 kB / 459.3 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.65, allocations: 0 / 459.3 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002617/0.6503, allocations: 139.2 kB / 459.4 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6503, allocations: 0 / 459.4 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000609/0.6509, allocations: 35.94 kB / 459.4 MB, free: 0.7812 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.001829/0.6527, allocations: 400 kB / 459.8 MB, free: 464 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006465/0.6535, allocations: 155.3 kB / 460 MB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.6535, allocations: 8.062 kB / 460 MB, free: 288 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.6537, allocations: 16 kB / 460 MB, free: 272 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.6541, allocations: 23.84 kB / 460 MB, free: 248 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008875/0.655, allocations: 254.8 kB / 460.3 MB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.6555, allocations: 0.7004 MB / 461 MB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.036e-05/0.6556, allocations: 11.44 kB / 461 MB, free: 15.22 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/0.6556, allocations: 0 / 461 MB, free: 15.22 MB / 394.7 MB Notification: Performance of Templates: time 0.007229/0.6629, allocations: 1.706 MB / 462.7 MB, free: 13.52 MB / 394.7 MB