Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1.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) 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_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003568, allocations: 8 kB / 233.8 MB, free: 312 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08969, allocations: 38.78 MB / 272.6 MB, free: 9.449 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4534, allocations: 68.26 MB / 340.9 MB, free: 14.37 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.4537, allocations: 74.17 kB / 341 MB, free: 14.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03713/0.4909, allocations: 7.488 MB / 348.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4909, allocations: 0 / 348.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.491, allocations: 4 kB / 348.4 MB, free: 6.812 MB / 282.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.001315/0.4923, allocations: 0.8199 MB / 349.3 MB, free: 5.879 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.4924, allocations: 12.03 kB / 349.3 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.4925, allocations: 27.72 kB / 349.3 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.493, allocations: 286.4 kB / 349.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.4931, allocations: 16.19 kB / 349.6 MB, free: 5.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.474e-05/0.4932, allocations: 20 kB / 349.6 MB, free: 5.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007557/0.494, allocations: 276.2 kB / 349.9 MB, free: 5.188 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.494, allocations: 3.938 kB / 349.9 MB, free: 5.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.4941, allocations: 8 kB / 349.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.4941, allocations: 8 kB / 349.9 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004148/0.4945, allocations: 143.8 kB / 350 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.496, allocations: 1.001 MB / 351 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005606/0.4966, allocations: 238 kB / 351.3 MB, free: 3.688 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.4966, allocations: 12.08 kB / 351.3 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008806/0.4975, allocations: 0.5235 MB / 351.8 MB, free: 3.078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 3.386e-06/0.4975, allocations: 0 / 351.8 MB, free: 3.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.002566/0.5001, allocations: 1.309 MB / 353.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003282/0.5005, allocations: 498.6 kB / 353.6 MB, free: 1.02 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.501, allocations: 294.5 kB / 353.9 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.884e-05/0.5011, allocations: 45.69 kB / 353.9 MB, free: 0.668 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.5013, allocations: 144.8 kB / 354.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.5014, allocations: 79.12 kB / 354.2 MB, free: 456 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.514e-05/0.5015, allocations: 12.06 kB / 354.2 MB, free: 444 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.5017, allocations: 346.8 kB / 354.5 MB, free: 88 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/0.5021, allocations: 140.4 kB / 354.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004884/0.5026, allocations: 236.8 kB / 354.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006307/0.5033, allocations: 437 kB / 355.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5033, allocations: 0 / 355.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002252/0.5056, allocations: 0.8533 MB / 356.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003927/0.506, allocations: 301 kB / 356.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.506, allocations: 0 / 356.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.634e-05/0.5061, allocations: 8 kB / 356.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.5063, allocations: 15.92 kB / 356.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.097e-05/0.5064, allocations: 11.89 kB / 356.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.5069, allocations: 31.84 kB / 356.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.5071, allocations: 27.98 kB / 356.5 MB, free: 13.82 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 () * Number of clocked 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.00092/0.508, allocations: 399.8 kB / 356.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.5082, allocations: 35.72 kB / 357 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.5084, allocations: 22.36 kB / 357 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.5084, allocations: 4 kB / 357 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.5084, allocations: 3.984 kB / 357 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-05/0.5084, allocations: 7.953 kB / 357 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/0.511, allocations: 0.8199 MB / 357.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5111, allocations: 0 / 357.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.036e-05/0.5112, allocations: 4 kB / 357.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.5112, allocations: 4 kB / 357.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5113, allocations: 19.98 kB / 357.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.409e-05/0.5114, allocations: 7.953 kB / 357.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5114, allocations: 0 / 357.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003216/0.5146, allocations: 0.8982 MB / 358.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.5148, allocations: 104.7 kB / 358.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.515, allocations: 31.98 kB / 358.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.5154, allocations: 23.98 kB / 358.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.5157, allocations: 27.92 kB / 359 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/0.5159, allocations: 27.98 kB / 359 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000601/0.5165, allocations: 201.9 kB / 359.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.913e-06/0.5165, allocations: 3.938 kB / 359.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001422/0.518, allocations: 159.9 kB / 359.3 MB, free: 10.83 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]) * Number of clocked states: 0 () * 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.0009202/0.5189, allocations: 251.5 kB / 359.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002209/0.5212, allocations: 0.9392 MB / 360.5 MB, free: 9.516 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.5212, allocations: 0 / 360.5 MB, free: 9.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.5225, allocations: 0.5862 MB / 361.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.523, allocations: 20.55 kB / 361.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.5255, allocations: 0.6518 MB / 361.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000661/0.5262, allocations: 0.7797 MB / 362.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000147/0.5264, allocations: 17.55 kB / 362.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.332e-05/0.5265, allocations: 15.44 kB / 362.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of SimCode: time 1.884e-06/0.5265, allocations: 0 / 362.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of Templates: time 0.01987/0.5464, allocations: 4.039 MB / 366.6 MB, free: 3.266 MB / 298.7 MB