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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.939/1.939, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004296/0.0004298, allocations: 8 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2831, allocations: 48.7 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001718/0.2848, allocations: 1.18 MB / 332.4 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.2858, allocations: 0.529 MB / 332.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.2859, allocations: 1.188 kB / 332.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.82e-05/0.286, allocations: 6 kB / 332.9 MB, free: 5.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.711e-05/0.286, allocations: 11.41 kB / 332.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004678/0.2865, allocations: 94.27 kB / 333 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.2867, allocations: 75.06 kB / 333.1 MB, free: 5.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.659e-05/0.2868, allocations: 9.547 kB / 333.1 MB, free: 5.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.938e-05/0.2869, allocations: 53.06 kB / 333.1 MB, free: 5.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.478e-05/0.2869, allocations: 41.12 kB / 333.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.287, allocations: 5.312 kB / 333.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.2871, allocations: 52.12 kB / 333.2 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.066e-05/0.2872, allocations: 29.78 kB / 333.3 MB, free: 5.359 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.72e-05/0.2873, allocations: 47.69 kB / 333.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.2875, allocations: 100.1 kB / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.72e-06/0.2875, allocations: 0 / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2875, allocations: 0 / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.147e-06/0.2875, allocations: 0 / 333.4 MB, free: 5.301 MB / 266.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.0005374/0.2881, allocations: 0.5427 MB / 333.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2881, allocations: 12.75 kB / 334 MB, free: 4.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.4e-05/0.2882, allocations: 14.72 kB / 334 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.632e-05/0.2883, allocations: 178 kB / 334.1 MB, free: 4.527 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.454e-05/0.2884, allocations: 88.58 kB / 334.2 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.2885, allocations: 15.47 kB / 334.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.2888, allocations: 145.7 kB / 334.4 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2888, allocations: 2.172 kB / 334.4 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.2889, allocations: 4.594 kB / 334.4 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.519e-06/0.2889, allocations: 1.25 kB / 334.4 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.2892, allocations: 88.98 kB / 334.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000713/0.2899, allocations: 0.526 MB / 335 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.2903, allocations: 153.7 kB / 335.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.2903, allocations: 6.031 kB / 335.2 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004728/0.2908, allocations: 464.4 kB / 335.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 3.121e-06/0.2908, allocations: 0.75 kB / 335.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001133/0.2919, allocations: 0.7799 MB / 336.4 MB, free: 2.656 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.292, allocations: 245.6 kB / 336.6 MB, free: 2.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.2922, allocations: 142 kB / 336.8 MB, free: 2.254 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.2922, allocations: 30.69 kB / 336.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.2923, allocations: 166.6 kB / 337 MB, free: 2.062 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.2923, allocations: 54.52 kB / 337 MB, free: 2.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.2924, allocations: 2.344 kB / 337 MB, free: 2.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.068e-05/0.2924, allocations: 325 kB / 337.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.2926, allocations: 51.05 kB / 337.4 MB, free: 1.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.2928, allocations: 121.9 kB / 337.5 MB, free: 1.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.2931, allocations: 210.7 kB / 337.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.677e-06/0.2931, allocations: 5.062 kB / 337.7 MB, free: 1.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006534/0.2938, allocations: 390.7 kB / 338.1 MB, free: 1.137 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.2938, allocations: 152.2 kB / 338.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.994e-06/0.2939, allocations: 2.609 kB / 338.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.2939, allocations: 3.125 kB / 338.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.928e-05/0.294, allocations: 14.05 kB / 338.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.294, allocations: 10.98 kB / 338.3 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.2942, allocations: 28.86 kB / 338.3 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.2942, allocations: 13.23 kB / 338.3 MB, free: 0.9492 MB / 266.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.0002152/0.2945, allocations: 273 kB / 338.6 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.212e-05/0.2945, allocations: 19.53 kB / 338.6 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.2946, allocations: 11.88 kB / 338.6 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.007e-06/0.2946, allocations: 10.33 kB / 338.6 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.478e-06/0.2946, allocations: 1.469 kB / 338.6 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2946, allocations: 4.844 kB / 338.6 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007992/0.2954, allocations: 0.5658 MB / 339.2 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-06/0.2954, allocations: 1.219 kB / 339.2 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.668e-05/0.2955, allocations: 3.031 kB / 339.2 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.302e-06/0.2955, allocations: 1.062 kB / 339.2 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.2955, allocations: 14.31 kB / 339.2 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.496e-06/0.2955, allocations: 8.734 kB / 339.2 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.243e-06/0.2956, allocations: 0.6875 kB / 339.2 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009611/0.2965, allocations: 0.5479 MB / 339.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.644e-05/0.2966, allocations: 89.27 kB / 339.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.2967, allocations: 18.66 kB / 339.9 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.2969, allocations: 17.97 kB / 339.9 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.994e-05/0.297, allocations: 22.03 kB / 339.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.2971, allocations: 16.84 kB / 339.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.941e-05/0.2972, allocations: 98.08 kB / 340 MB, free: 15.65 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.25e-07/0.2972, allocations: 0 / 340 MB, free: 15.65 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004944/0.2977, allocations: 66 kB / 340.1 MB, free: 15.64 MB / 282.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.0002594/0.298, allocations: 153.2 kB / 340.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008392/0.2988, allocations: 0.492 MB / 340.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.965e-06/0.2988, allocations: 5.312 kB / 340.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005703/0.2994, allocations: 408.3 kB / 341.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.2997, allocations: 28.39 kB / 341.2 MB, free: 14.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008309/0.3005, allocations: 352.6 kB / 341.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/0.301, allocations: 0.7097 MB / 342.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.496e-05/0.301, allocations: 12.16 kB / 342.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of SimCode: time 1.799e-06/0.301, allocations: 1.062 kB / 342.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of Templates: time 0.004708/0.3058, allocations: 1.863 MB / 344.1 MB, free: 12.83 MB / 282.7 MB