Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.392/2.392, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.0004272, allocations: 12 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4589/0.4594, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.6669, allocations: 81 MB / 450.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.6674, allocations: 71.95 kB / 450.9 MB, free: 9.562 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0135/0.6809, allocations: 1.966 MB / 452.8 MB, free: 7.594 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.681, allocations: 0 / 452.8 MB, free: 7.594 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.681, allocations: 0 / 452.8 MB, free: 7.594 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.001061/0.6821, allocations: 0.5501 MB / 453.4 MB, free: 6.965 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.6822, allocations: 8.031 kB / 453.4 MB, free: 6.957 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.6823, allocations: 23.86 kB / 453.4 MB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.6825, allocations: 184.7 kB / 453.6 MB, free: 6.715 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.6827, allocations: 85.11 kB / 453.7 MB, free: 6.613 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/0.6828, allocations: 16 kB / 453.7 MB, free: 6.598 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006121/0.6834, allocations: 144.1 kB / 453.8 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.6835, allocations: 0 / 453.8 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.6835, allocations: 8 kB / 453.8 MB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.6836, allocations: 0 / 453.8 MB, free: 6.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004987/0.6841, allocations: 91.88 kB / 453.9 MB, free: 6.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.6855, allocations: 0.5245 MB / 454.5 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005494/0.686, allocations: 159.8 kB / 454.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.6861, allocations: 0 / 454.6 MB, free: 5.578 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008799/0.687, allocations: 472.2 kB / 455.1 MB, free: 5.031 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.146e-06/0.687, allocations: 4 kB / 455.1 MB, free: 5.027 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.002104/0.6891, allocations: 0.7761 MB / 455.9 MB, free: 4.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/0.6894, allocations: 247.3 kB / 456.1 MB, free: 3.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.6896, allocations: 137.7 kB / 456.2 MB, free: 3.707 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.236e-05/0.6897, allocations: 33.7 kB / 456.3 MB, free: 3.668 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.6899, allocations: 167.1 kB / 456.4 MB, free: 3.504 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.69, allocations: 43.52 kB / 456.5 MB, free: 3.461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.69, allocations: 4 kB / 456.5 MB, free: 3.457 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.6902, allocations: 322.8 kB / 456.8 MB, free: 3.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.6905, allocations: 55.97 kB / 456.8 MB, free: 3.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.6909, allocations: 119.7 kB / 457 MB, free: 2.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.6914, allocations: 204.4 kB / 457.2 MB, free: 2.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.6915, allocations: 4 kB / 457.2 MB, free: 2.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001268/0.6928, allocations: 401.8 kB / 457.6 MB, free: 2.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.693, allocations: 158.8 kB / 457.7 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.693, allocations: 0 / 457.7 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/0.693, allocations: 7.938 kB / 457.7 MB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.6932, allocations: 16.25 kB / 457.7 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/0.6932, allocations: 4.188 kB / 457.7 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.6935, allocations: 27.92 kB / 457.8 MB, free: 2.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.91e-05/0.6936, allocations: 16 kB / 457.8 MB, free: 2.016 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.0004454/0.6941, allocations: 274.8 kB / 458 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.868e-05/0.6942, allocations: 15.91 kB / 458.1 MB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.733e-05/0.6943, allocations: 16.33 kB / 458.1 MB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.6943, allocations: 4 kB / 458.1 MB, free: 1.676 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.6943, allocations: 4 kB / 458.1 MB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.6943, allocations: 0 / 458.1 MB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.6957, allocations: 0.568 MB / 458.7 MB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6957, allocations: 3.953 kB / 458.7 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.461e-05/0.6957, allocations: 0 / 458.7 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/0.6958, allocations: 4 kB / 458.7 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.6958, allocations: 8 kB / 458.7 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.6958, allocations: 0 / 458.7 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.6959, allocations: 7.984 kB / 458.7 MB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.6973, allocations: 0.5506 MB / 459.2 MB, free: 428 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.861e-05/0.6974, allocations: 96.86 kB / 459.3 MB, free: 312 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.319e-05/0.6975, allocations: 8 kB / 459.3 MB, free: 304 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.6979, allocations: 27.98 kB / 459.4 MB, free: 276 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.6981, allocations: 15.98 kB / 459.4 MB, free: 260 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.645e-05/0.6981, allocations: 12 kB / 459.4 MB, free: 248 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001397/0.6983, allocations: 105.1 kB / 459.5 MB, free: 144 kB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6983, allocations: 0 / 459.5 MB, free: 144 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001088/0.6994, allocations: 67.94 kB / 459.6 MB, free: 76 kB / 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.0005624/0.7, allocations: 147.4 kB / 459.7 MB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.702, allocations: 0.4894 MB / 460.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/0.702, allocations: 0 / 460.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.7034, allocations: 421.5 kB / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.7038, allocations: 8.375 kB / 460.6 MB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.7052, allocations: 349.6 kB / 460.9 MB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.7058, allocations: 0.7163 MB / 461.7 MB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.444e-05/0.7059, allocations: 11.44 kB / 461.7 MB, free: 13.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7059, allocations: 0 / 461.7 MB, free: 13.76 MB / 394.7 MB Notification: Performance of Templates: time 0.007519/0.7134, allocations: 1.867 MB / 463.5 MB, free: 11.89 MB / 394.7 MB