Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 2.38/2.38, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003729, allocations: 8 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1322, allocations: 44.51 MB / 309 MB, free: 396 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.6032, allocations: 73.62 MB / 382.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.6035, allocations: 70.02 kB / 382.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03645/0.64, allocations: 7.556 MB / 390.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.64, allocations: 0 / 390.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.6401, allocations: 3.969 kB / 390.3 MB, free: 14.7 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001137/0.6412, allocations: 0.8343 MB / 391.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.6413, allocations: 7.812 kB / 391.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.6414, allocations: 35.12 kB / 391.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004826/0.6419, allocations: 292.8 kB / 391.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.642, allocations: 11.22 kB / 391.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.403e-05/0.642, allocations: 19.69 kB / 391.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006381/0.6427, allocations: 282.4 kB / 391.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6427, allocations: 3.938 kB / 391.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.6428, allocations: 3.938 kB / 391.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.6428, allocations: 7.828 kB / 391.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.6432, allocations: 150.9 kB / 391.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.6444, allocations: 1.019 MB / 392.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.6449, allocations: 232.2 kB / 393.2 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.6449, allocations: 7.875 kB / 393.2 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007121/0.6457, allocations: 0.5327 MB / 393.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.226e-06/0.6457, allocations: 4 kB / 393.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001998/0.6477, allocations: 1.291 MB / 395 MB, free: 11.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001631/0.6479, allocations: 495.8 kB / 395.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.6483, allocations: 301.8 kB / 395.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.6485, allocations: 44.39 kB / 395.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.6486, allocations: 144.3 kB / 396 MB, free: 10.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.832e-05/0.6487, allocations: 88.34 kB / 396.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.6488, allocations: 7.688 kB / 396.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.6489, allocations: 346.1 kB / 396.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.6492, allocations: 158 kB / 396.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008722/0.6501, allocations: 235 kB / 396.8 MB, free: 10.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.6516, allocations: 445.3 kB / 397.2 MB, free: 9.938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.6517, allocations: 3.938 kB / 397.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001489/0.6532, allocations: 0.8321 MB / 398.1 MB, free: 9.547 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.6534, allocations: 295 kB / 398.3 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.6534, allocations: 4.156 kB / 398.3 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.6534, allocations: 11.44 kB / 398.4 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.6536, allocations: 15.12 kB / 398.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.6536, allocations: 7.891 kB / 398.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.6539, allocations: 33.42 kB / 398.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/0.654, allocations: 29.53 kB / 398.4 MB, free: 9.215 MB / 314.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: 53 ($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,timeTable.nextEventScaled,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.0005129/0.6545, allocations: 405 kB / 398.8 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.944e-05/0.6546, allocations: 38.66 kB / 398.9 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.602e-05/0.6547, allocations: 28.78 kB / 398.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.6547, allocations: 3.875 kB / 398.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.6547, allocations: 0 / 398.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.6547, allocations: 4.031 kB / 398.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.6559, allocations: 0.8264 MB / 399.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.6559, allocations: 3.812 kB / 399.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.052e-05/0.656, allocations: 0 / 399.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.656, allocations: 7.812 kB / 399.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/0.656, allocations: 17.2 kB / 399.8 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.6561, allocations: 7.297 kB / 399.8 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6561, allocations: 0 / 399.8 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.6576, allocations: 0.8955 MB / 400.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-05/0.6576, allocations: 96.58 kB / 400.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.6578, allocations: 30.92 kB / 400.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.6581, allocations: 30.45 kB / 400.8 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.6582, allocations: 23.97 kB / 400.8 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.6584, allocations: 29.23 kB / 400.9 MB, free: 7.938 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002936/0.6587, allocations: 217.4 kB / 401.1 MB, free: 7.852 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6587, allocations: 0 / 401.1 MB, free: 7.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009161/0.6596, allocations: 161.7 kB / 401.2 MB, free: 7.832 MB / 314.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: 32 ($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,timeTable.nextEventScaled,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 30 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.0005972/0.6602, allocations: 250.9 kB / 401.5 MB, free: 7.715 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.6615, allocations: 0.9798 MB / 402.5 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6615, allocations: 0 / 402.5 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006653/0.6622, allocations: 0.6109 MB / 403.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.6626, allocations: 25.58 kB / 403.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.6641, allocations: 0.6639 MB / 403.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.6645, allocations: 0.7869 MB / 404.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.6646, allocations: 20.91 kB / 404.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.6646, allocations: 15.19 kB / 404.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6646, allocations: 0 / 404.6 MB, free: 5.672 MB / 314.7 MB Notification: Performance of Templates: time 0.01271/0.6773, allocations: 4.149 MB / 408.7 MB, free: 4.664 MB / 314.7 MB