Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1.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) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 1.613/1.613, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.556e-05/2.568e-05, allocations: 4 kB / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1984, allocations: 38.78 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0985/0.2969, allocations: 68.18 MB / 335.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.2972, allocations: 67.91 kB / 335.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03258/0.3298, allocations: 7.448 MB / 343.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.882e-06/0.3298, allocations: 0 / 343.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.3298, allocations: 4 kB / 343.3 MB, free: 13.62 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0009966/0.3308, allocations: 0.7884 MB / 344.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3309, allocations: 8.031 kB / 344.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.331, allocations: 35.62 kB / 344.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.3314, allocations: 270.5 kB / 344.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.3315, allocations: 16.14 kB / 344.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/0.3316, allocations: 20 kB / 344.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.3321, allocations: 280.2 kB / 344.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3322, allocations: 4 kB / 344.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.3322, allocations: 8 kB / 344.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.3323, allocations: 7.938 kB / 344.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.3326, allocations: 139.8 kB / 344.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.3339, allocations: 1.013 MB / 345.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000421/0.3343, allocations: 230.4 kB / 346.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003196/0.3347, allocations: 163.5 kB / 346.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.3347, allocations: 8 kB / 346.2 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007014/0.3354, allocations: 0.5041 MB / 346.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.096e-06/0.3354, allocations: 0 / 346.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001358/0.3368, allocations: 0.6878 MB / 347.4 MB, free: 9.043 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003184/0.3371, allocations: 0.4947 MB / 347.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/0.3375, allocations: 259 kB / 348.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.3376, allocations: 49.69 kB / 348.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.3378, allocations: 187.2 kB / 348.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3379, allocations: 83.3 kB / 348.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.3379, allocations: 8 kB / 348.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3381, allocations: 326.8 kB / 348.8 MB, free: 7.516 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.3384, allocations: 144.4 kB / 349 MB, free: 7.375 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.3388, allocations: 228.8 kB / 349.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/0.3394, allocations: 444.8 kB / 349.6 MB, free: 6.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.828e-06/0.3394, allocations: 0 / 349.6 MB, free: 6.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001442/0.3409, allocations: 0.8221 MB / 350.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/0.3411, allocations: 297 kB / 350.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3411, allocations: 4.156 kB / 350.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3412, allocations: 8 kB / 350.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.758e-05/0.3413, allocations: 15.94 kB / 350.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3413, allocations: 4 kB / 350.8 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.3415, allocations: 35.97 kB / 350.8 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-05/0.3416, allocations: 32 kB / 350.8 MB, free: 5.273 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index,$whenCondition8,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,$whenCondition7,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$whenCondition6,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],$whenCondition1,$whenCondition2,$whenCondition3,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 10 * 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.0003538/0.342, allocations: 351.2 kB / 351.2 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.3421, allocations: 39.59 kB / 351.2 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.443e-05/0.3422, allocations: 29.95 kB / 351.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.514e-06/0.3422, allocations: 4 kB / 351.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.172e-06/0.3422, allocations: 0 / 351.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.752e-06/0.3422, allocations: 0 / 351.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3434, allocations: 0.8037 MB / 352.1 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.512e-06/0.3435, allocations: 3.984 kB / 352.1 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.3435, allocations: 7.938 kB / 352.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.677e-06/0.3435, allocations: 0 / 352.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.3436, allocations: 16 kB / 352.1 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.952e-06/0.3436, allocations: 7.984 kB / 352.1 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.635e-06/0.3436, allocations: 3.953 kB / 352.1 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.3452, allocations: 0.9149 MB / 353 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.914e-05/0.3453, allocations: 108.6 kB / 353.1 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.3454, allocations: 27.98 kB / 353.1 MB, free: 2.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.3457, allocations: 23.98 kB / 353.2 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3458, allocations: 39.89 kB / 353.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.996e-05/0.3459, allocations: 23.98 kB / 353.2 MB, free: 2.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002689/0.3462, allocations: 207.1 kB / 353.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.317e-06/0.3462, allocations: 0 / 353.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007224/0.347, allocations: 155.9 kB / 353.6 MB, free: 2.305 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,start.reset[1],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],$whenCondition7,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 29 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition7,stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition4,$whenCondition6,stop.on,$whenCondition5,stop.pre_reset[1],stop.reset[1],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition3,start.on,$whenCondition2,start.pre_reset[1],start.reset[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 3 * 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.0005218/0.3475, allocations: 247.5 kB / 353.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.3487, allocations: 0.9317 MB / 354.8 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.281e-06/0.3487, allocations: 0 / 354.8 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006853/0.3494, allocations: 0.5784 MB / 355.3 MB, free: 360 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.3497, allocations: 36.44 kB / 355.4 MB, free: 320 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1693/0.519, allocations: 0.5146 MB / 355.9 MB, free: 80.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.5194, allocations: 0.7777 MB / 356.7 MB, free: 79.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.5195, allocations: 17.19 kB / 356.7 MB, free: 79.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.007e-06/0.5195, allocations: 0.5 kB / 356.7 MB, free: 79.84 MB / 298.7 MB Notification: Performance of Templates: time 0.008267/0.5278, allocations: 4.304 MB / 361 MB, free: 79.54 MB / 298.7 MB