Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 2.042/2.042, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006078/0.000608, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.355, allocations: 48.7 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1373/0.4924, allocations: 74.63 MB / 406.4 MB, free: 3.828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4928, allocations: 71.97 kB / 406.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009854/0.5026, allocations: 1.989 MB / 408.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5027, allocations: 0 / 408.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.5027, allocations: 0 / 408.5 MB, free: 1.77 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.0007654/0.5035, allocations: 0.5293 MB / 409 MB, free: 1.164 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5035, allocations: 12.03 kB / 409 MB, free: 1.152 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.5036, allocations: 11.91 kB / 409 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.5038, allocations: 178.9 kB / 409.2 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.5039, allocations: 101 kB / 409.3 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.504, allocations: 16 kB / 409.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.5044, allocations: 140.8 kB / 409.5 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.5045, allocations: 0 / 409.5 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.5045, allocations: 4 kB / 409.5 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.5045, allocations: 4 kB / 409.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.5049, allocations: 91.88 kB / 409.6 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.506, allocations: 0.5208 MB / 410.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.5064, allocations: 159.7 kB / 410.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.5064, allocations: 0 / 410.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006459/0.5071, allocations: 467.4 kB / 410.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.284e-06/0.5071, allocations: 0 / 410.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001507/0.5086, allocations: 0.7801 MB / 411.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/0.5088, allocations: 247.3 kB / 411.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.509, allocations: 133.7 kB / 411.8 MB, free: 13.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.045e-05/0.5091, allocations: 37.7 kB / 411.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.5092, allocations: 155 kB / 412 MB, free: 13.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.459e-05/0.5093, allocations: 47.48 kB / 412.1 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.5093, allocations: 8 kB / 412.1 MB, free: 13.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.5095, allocations: 326.8 kB / 412.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.5097, allocations: 55.97 kB / 412.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.51, allocations: 119.6 kB / 412.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.5104, allocations: 213.1 kB / 412.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.5104, allocations: 0 / 412.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008876/0.5113, allocations: 405.9 kB / 413.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.5114, allocations: 156.4 kB / 413.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5115, allocations: 4 kB / 413.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.5115, allocations: 4 kB / 413.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.5116, allocations: 15.92 kB / 413.4 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.5116, allocations: 0 / 413.4 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.5119, allocations: 27.92 kB / 413.4 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.5119, allocations: 15.95 kB / 413.4 MB, free: 12.22 MB / 346.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.0003088/0.5122, allocations: 270.8 kB / 413.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-05/0.5123, allocations: 24.05 kB / 413.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.5124, allocations: 16.36 kB / 413.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5124, allocations: 3.984 kB / 413.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.5124, allocations: 0 / 413.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.984e-06/0.5124, allocations: 4 kB / 413.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000947/0.5134, allocations: 0.5681 MB / 414.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.5134, allocations: 4 kB / 414.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-05/0.5134, allocations: 0 / 414.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.5134, allocations: 0 / 414.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/0.5135, allocations: 12 kB / 414.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.5135, allocations: 0 / 414.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5135, allocations: 0 / 414.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.5146, allocations: 0.5639 MB / 414.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.755e-05/0.5147, allocations: 88.92 kB / 414.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.5148, allocations: 11.98 kB / 415 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.5151, allocations: 16 kB / 415 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.5152, allocations: 27.92 kB / 415 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.5152, allocations: 12 kB / 415 MB, free: 10.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.5154, allocations: 107.3 kB / 415.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.224e-06/0.5154, allocations: 0 / 415.1 MB, free: 10.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004891/0.5159, allocations: 67.94 kB / 415.2 MB, free: 10.28 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) * 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.0002848/0.5162, allocations: 139.1 kB / 415.3 MB, free: 10.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009319/0.5171, allocations: 0.5011 MB / 415.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5171, allocations: 0 / 415.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.5178, allocations: 417.5 kB / 416.2 MB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.5181, allocations: 19.47 kB / 416.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009192/0.519, allocations: 346.5 kB / 416.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.5193, allocations: 0.7121 MB / 417.3 MB, free: 7.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.5194, allocations: 11.44 kB / 417.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of SimCode: time 1.223e-06/0.5194, allocations: 4 kB / 417.3 MB, free: 7.965 MB / 346.7 MB Notification: Performance of Templates: time 0.00562/0.5251, allocations: 1.87 MB / 419.2 MB, free: 6.094 MB / 346.7 MB