Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay.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.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.2_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 2.097/2.097, allocations: 234.9 MB / 250.5 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004347, allocations: 12 kB / 314.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2869, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.4071, allocations: 81.02 MB / 450.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4074, allocations: 63.97 kB / 450.3 MB, free: 11.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008317/0.4157, allocations: 1.981 MB / 452.3 MB, free: 9.586 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.668e-06/0.4158, allocations: 3.938 kB / 452.3 MB, free: 9.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.4158, allocations: 4 kB / 452.3 MB, free: 9.578 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006739/0.4165, allocations: 0.5385 MB / 452.9 MB, free: 8.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.4165, allocations: 8.031 kB / 452.9 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.029e-05/0.4166, allocations: 19.86 kB / 452.9 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.4168, allocations: 178.9 kB / 453.1 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.417, allocations: 93.11 kB / 453.2 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.417, allocations: 16 kB / 453.2 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.4174, allocations: 140.1 kB / 453.3 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.431e-06/0.4174, allocations: 0 / 453.3 MB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.4174, allocations: 4 kB / 453.3 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.895e-06/0.4175, allocations: 0 / 453.3 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.4178, allocations: 99.83 kB / 453.4 MB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008703/0.4187, allocations: 0.5168 MB / 453.9 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.419, allocations: 155.8 kB / 454.1 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.4191, allocations: 3.984 kB / 454.1 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005844/0.4196, allocations: 467.4 kB / 454.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.503e-06/0.4197, allocations: 0 / 454.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001349/0.421, allocations: 0.7856 MB / 455.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.4212, allocations: 247.3 kB / 455.6 MB, free: 5.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4214, allocations: 122.7 kB / 455.7 MB, free: 5.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.4214, allocations: 33.7 kB / 455.7 MB, free: 5.688 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4215, allocations: 167.1 kB / 455.9 MB, free: 5.523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.4216, allocations: 43.5 kB / 455.9 MB, free: 5.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.4217, allocations: 4 kB / 455.9 MB, free: 5.477 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4218, allocations: 320.9 kB / 456.2 MB, free: 5.156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.422, allocations: 59.97 kB / 456.3 MB, free: 5.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.4223, allocations: 125.2 kB / 456.4 MB, free: 4.949 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.4226, allocations: 204.5 kB / 456.6 MB, free: 4.719 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.236e-06/0.4227, allocations: 288 / 456.6 MB, free: 4.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007802/0.4234, allocations: 401.9 kB / 457 MB, free: 4.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.4236, allocations: 159 kB / 457.2 MB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4236, allocations: 7.938 kB / 457.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4236, allocations: 0 / 457.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.56e-05/0.4237, allocations: 16.3 kB / 457.2 MB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.4238, allocations: 4 kB / 457.2 MB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.4239, allocations: 27.86 kB / 457.2 MB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.424, allocations: 16 kB / 457.2 MB, free: 4.035 MB / 378.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 () * Number of clocked 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.0002817/0.4243, allocations: 274.8 kB / 457.5 MB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.4243, allocations: 19.91 kB / 457.5 MB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.4244, allocations: 16.31 kB / 457.5 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.496e-06/0.4244, allocations: 4 kB / 457.5 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.646e-06/0.4244, allocations: 0 / 457.5 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.25e-06/0.4244, allocations: 0 / 457.5 MB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008785/0.4253, allocations: 0.568 MB / 458.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.359e-06/0.4253, allocations: 0 / 458.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.98e-05/0.4254, allocations: 7.953 kB / 458.1 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.781e-06/0.4254, allocations: 0 / 458.1 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.4254, allocations: 12 kB / 458.1 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.767e-06/0.4254, allocations: 0 / 458.1 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.59e-06/0.4255, allocations: 4 kB / 458.1 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009736/0.4264, allocations: 0.5738 MB / 458.7 MB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.068e-05/0.4265, allocations: 88.92 kB / 458.8 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.336e-05/0.4266, allocations: 15.98 kB / 458.8 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.4268, allocations: 20 kB / 458.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.4269, allocations: 23.97 kB / 458.9 MB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.427, allocations: 8 kB / 458.9 MB, free: 2.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.873e-05/0.4271, allocations: 99.97 kB / 459 MB, free: 2.137 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.19e-07/0.4271, allocations: 0 / 459 MB, free: 2.137 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004853/0.4276, allocations: 67.98 kB / 459 MB, free: 2.07 MB / 378.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) * Number of clocked states: 0 () * 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.0002523/0.4278, allocations: 146.6 kB / 459.2 MB, free: 1.918 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008025/0.4287, allocations: 0.5015 MB / 459.7 MB, free: 1.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.017e-06/0.4287, allocations: 0 / 459.7 MB, free: 1.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.4292, allocations: 413.8 kB / 460.1 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.4295, allocations: 15.98 kB / 460.1 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007734/0.4302, allocations: 346 kB / 460.4 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.4307, allocations: 0.7163 MB / 461.1 MB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.4307, allocations: 11.44 kB / 461.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4307, allocations: 0 / 461.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of Templates: time 0.004505/0.4353, allocations: 1.863 MB / 463 MB, free: 13.89 MB / 394.7 MB