Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.index|booleanTable.nextTime|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 1.952/1.952, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.539e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2838, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3937, allocations: 73.88 MB / 393.9 MB, free: 6.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.394, allocations: 63.97 kB / 393.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008135/0.4021, allocations: 1.962 MB / 395.9 MB, free: 4.543 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.209e-06/0.4022, allocations: 0 / 395.9 MB, free: 4.543 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.903e-06/0.4022, allocations: 0 / 395.9 MB, free: 4.543 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006492/0.4029, allocations: 0.5339 MB / 396.4 MB, free: 3.934 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4029, allocations: 8.031 kB / 396.4 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.16e-05/0.403, allocations: 15.91 kB / 396.5 MB, free: 3.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.4032, allocations: 167 kB / 396.6 MB, free: 3.707 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.4033, allocations: 97.05 kB / 396.7 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.4034, allocations: 8 kB / 396.7 MB, free: 3.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002045/0.4036, allocations: 63.98 kB / 396.8 MB, free: 3.523 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.4038, allocations: 132.9 kB / 396.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.444e-06/0.4039, allocations: 0 / 396.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.4039, allocations: 4 kB / 396.9 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4039, allocations: 0 / 396.9 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008145/0.4047, allocations: 0.5093 MB / 397.4 MB, free: 2.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.405, allocations: 131.7 kB / 397.6 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.4052, allocations: 90.5 kB / 397.6 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.4052, allocations: 8.219 kB / 397.7 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004864/0.4057, allocations: 439.4 kB / 398.1 MB, free: 2.043 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.552e-06/0.4058, allocations: 4 kB / 398.1 MB, free: 2.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006514/0.4064, allocations: 237.5 kB / 398.3 MB, free: 1.801 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/0.4066, allocations: 251.2 kB / 398.6 MB, free: 1.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.4067, allocations: 125.9 kB / 398.7 MB, free: 1.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.4068, allocations: 29.7 kB / 398.7 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.4069, allocations: 163.1 kB / 398.9 MB, free: 1.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.407, allocations: 35.52 kB / 398.9 MB, free: 1.141 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.407, allocations: 4 kB / 398.9 MB, free: 1.137 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.4072, allocations: 330.8 kB / 399.2 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4073, allocations: 47.94 kB / 399.3 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.4075, allocations: 101 kB / 399.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4077, allocations: 60.41 kB / 399.4 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.632e-06/0.4077, allocations: 0 / 399.4 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005435/0.4082, allocations: 223 kB / 399.7 MB, free: 364 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.4084, allocations: 154.8 kB / 399.8 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4084, allocations: 4 kB / 399.8 MB, free: 176 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.4084, allocations: 8.188 kB / 399.8 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.349e-05/0.4085, allocations: 19.92 kB / 399.8 MB, free: 148 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4086, allocations: 0 / 399.8 MB, free: 148 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.4087, allocations: 16 kB / 399.9 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.4088, allocations: 11.98 kB / 399.9 MB, free: 120 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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.0002735/0.4091, allocations: 265.9 kB / 400.1 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.4091, allocations: 19.91 kB / 400.1 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.235e-05/0.4092, allocations: 12.62 kB / 400.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4092, allocations: 4 kB / 400.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.524e-06/0.4092, allocations: 0 / 400.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.382e-06/0.4092, allocations: 0 / 400.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007586/0.41, allocations: 478.8 kB / 400.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.592e-06/0.41, allocations: 0 / 400.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.549e-05/0.41, allocations: 4 kB / 400.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.169e-06/0.4101, allocations: 4 kB / 400.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.4101, allocations: 12 kB / 400.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.908e-06/0.4101, allocations: 0 / 400.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.029e-06/0.4101, allocations: 0 / 400.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007225/0.4109, allocations: 422.6 kB / 401.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.521e-05/0.4109, allocations: 96.91 kB / 401.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.411, allocations: 12 kB / 401.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/0.4112, allocations: 23.81 kB / 401.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/0.4113, allocations: 23.92 kB / 401.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.4114, allocations: 12 kB / 401.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.518e-05/0.4115, allocations: 101.7 kB / 401.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.4115, allocations: 0 / 401.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004555/0.4119, allocations: 60 kB / 401.4 MB, free: 14.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0002655/0.4122, allocations: 139 kB / 401.5 MB, free: 14.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.4129, allocations: 461.3 kB / 402 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.954e-06/0.4129, allocations: 0 / 402 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004455/0.4134, allocations: 394 kB / 402.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.4136, allocations: 12 kB / 402.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005878/0.4142, allocations: 250.3 kB / 402.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.4146, allocations: 0.708 MB / 403.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.084e-05/0.4147, allocations: 15.44 kB / 403.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.4147, allocations: 3.938 kB / 403.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of Templates: time 0.004507/0.4192, allocations: 1.863 MB / 405.2 MB, free: 10.48 MB / 346.7 MB