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.132/2.132, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004329/0.000433, allocations: 12 kB / 314.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.269, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001908/0.271, allocations: 1.196 MB / 370.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.272, allocations: 0.5289 MB / 370.9 MB, free: 8.969 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.604e-05/0.2721, allocations: 7.938 kB / 370.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.479e-05/0.2722, allocations: 3.938 kB / 370.9 MB, free: 8.957 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.2723, allocations: 15.97 kB / 370.9 MB, free: 8.941 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.2728, allocations: 83.88 kB / 371 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.2729, allocations: 75.84 kB / 371.1 MB, free: 8.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.788e-05/0.273, allocations: 12.23 kB / 371.1 MB, free: 8.773 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.142e-05/0.2731, allocations: 39.91 kB / 371.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.443e-05/0.2732, allocations: 55.8 kB / 371.2 MB, free: 8.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.2732, allocations: 4 kB / 371.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.2734, allocations: 55.84 kB / 371.2 MB, free: 8.621 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.2735, allocations: 15.98 kB / 371.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.01e-05/0.2735, allocations: 53.62 kB / 371.3 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.2737, allocations: 92.52 kB / 371.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.606e-06/0.2738, allocations: 4 kB / 371.4 MB, free: 8.453 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.839e-06/0.2738, allocations: 4 kB / 371.4 MB, free: 8.449 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.114e-06/0.2738, allocations: 0 / 371.4 MB, free: 8.449 MB / 298.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.0007059/0.2745, allocations: 0.5461 MB / 372 MB, free: 7.824 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2745, allocations: 8.031 kB / 372 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.2746, allocations: 19.91 kB / 372 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.2748, allocations: 183.5 kB / 372.2 MB, free: 7.578 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.2749, allocations: 89.11 kB / 372.3 MB, free: 7.473 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.275, allocations: 16 kB / 372.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.2754, allocations: 140.1 kB / 372.4 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2754, allocations: 4 kB / 372.4 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.2754, allocations: 7.953 kB / 372.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2754, allocations: 3.984 kB / 372.4 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2757, allocations: 87.94 kB / 372.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008867/0.2766, allocations: 0.5245 MB / 373 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.277, allocations: 151.8 kB / 373.2 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.277, allocations: 0 / 373.2 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006305/0.2777, allocations: 473.4 kB / 373.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.478e-06/0.2777, allocations: 0 / 373.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001336/0.2791, allocations: 0.7742 MB / 374.4 MB, free: 5.023 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/0.2792, allocations: 255.2 kB / 374.7 MB, free: 4.719 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.2794, allocations: 137.2 kB / 374.8 MB, free: 4.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.2795, allocations: 33.7 kB / 374.8 MB, free: 4.539 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.2796, allocations: 163 kB / 375 MB, free: 4.379 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.116e-05/0.2797, allocations: 55.34 kB / 375 MB, free: 4.324 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.483e-05/0.2797, allocations: 4 kB / 375.1 MB, free: 4.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2799, allocations: 323.1 kB / 375.4 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.2801, allocations: 55.97 kB / 375.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.2803, allocations: 119.6 kB / 375.5 MB, free: 3.797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.2806, allocations: 208.4 kB / 375.7 MB, free: 3.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.189e-06/0.2806, allocations: 4 kB / 375.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007452/0.2814, allocations: 398 kB / 376.1 MB, free: 3.133 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.2816, allocations: 160.5 kB / 376.3 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.667e-06/0.2816, allocations: 0 / 376.3 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.2816, allocations: 4 kB / 376.3 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.769e-05/0.2817, allocations: 12.31 kB / 376.3 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.621e-06/0.2817, allocations: 4 kB / 376.3 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.2819, allocations: 27.83 kB / 376.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.2819, allocations: 16 kB / 376.4 MB, free: 2.883 MB / 298.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.0002903/0.2822, allocations: 278.8 kB / 376.6 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.2823, allocations: 19.86 kB / 376.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.2824, allocations: 12.38 kB / 376.7 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.349e-06/0.2824, allocations: 4 kB / 376.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.493e-06/0.2824, allocations: 0 / 376.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2824, allocations: 0 / 376.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000892/0.2833, allocations: 0.5718 MB / 377.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.325e-06/0.2833, allocations: 4 kB / 377.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.703e-05/0.2834, allocations: 4 kB / 377.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.799e-06/0.2834, allocations: 3.938 kB / 377.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.2834, allocations: 15.98 kB / 377.3 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.138e-06/0.2834, allocations: 0 / 377.3 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.225e-06/0.2834, allocations: 4 kB / 377.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009615/0.2844, allocations: 0.5566 MB / 377.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.2845, allocations: 88.92 kB / 377.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.976e-05/0.2846, allocations: 12 kB / 377.9 MB, free: 1.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.2848, allocations: 19.98 kB / 377.9 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.2849, allocations: 15.98 kB / 378 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.2849, allocations: 19.98 kB / 378 MB, free: 1.094 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.166e-05/0.285, allocations: 99.27 kB / 378.1 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.26e-07/0.285, allocations: 0 / 378.1 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004444/0.2855, allocations: 60 kB / 378.1 MB, free: 0.9375 MB / 298.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.0002369/0.2857, allocations: 135.4 kB / 378.3 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008082/0.2866, allocations: 0.505 MB / 378.8 MB, free: 236 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.927e-06/0.2866, allocations: 0 / 378.8 MB, free: 236 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.2872, allocations: 413.5 kB / 379.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.2874, allocations: 19.95 kB / 379.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007613/0.2882, allocations: 357.6 kB / 379.5 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.2886, allocations: 0.7085 MB / 380.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.848e-05/0.2887, allocations: 11.44 kB / 380.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of SimCode: time 1.522e-06/0.2887, allocations: 0 / 380.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of Templates: time 0.004488/0.2932, allocations: 1.858 MB / 382.1 MB, free: 12.77 MB / 314.7 MB