Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003494, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.5494, allocations: 73.62 MB / 382.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.5498, allocations: 68.92 kB / 382.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04772/0.5975, allocations: 7.555 MB / 390.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5976, allocations: 0 / 390.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.5976, allocations: 3.969 kB / 390.2 MB, free: 14.12 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.001347/0.599, allocations: 0.8301 MB / 391 MB, free: 13.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.599, allocations: 7.781 kB / 391 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.5992, allocations: 38.88 kB / 391.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.5998, allocations: 285.1 kB / 391.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.5998, allocations: 15.25 kB / 391.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.5999, allocations: 22.84 kB / 391.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008302/0.6008, allocations: 274.4 kB / 391.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.6008, allocations: 1.188 kB / 391.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.047e-05/0.6009, allocations: 19.62 kB / 391.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.381e-05/0.6009, allocations: 14.38 kB / 391.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.6015, allocations: 149.6 kB / 391.8 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.603, allocations: 1.01 MB / 392.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.6036, allocations: 240.8 kB / 393.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.6036, allocations: 3.938 kB / 393.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009119/0.6046, allocations: 0.5317 MB / 393.6 MB, free: 11.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.857e-06/0.6046, allocations: 7.5 kB / 393.6 MB, free: 11.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002428/0.607, allocations: 1.287 MB / 394.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000168/0.6073, allocations: 0.4885 MB / 395.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.6077, allocations: 297.2 kB / 395.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.901e-05/0.6078, allocations: 42.92 kB / 395.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.6079, allocations: 194.7 kB / 395.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/0.608, allocations: 91.05 kB / 396 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.6081, allocations: 6.625 kB / 396 MB, free: 10.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.96e-05/0.6082, allocations: 331.7 kB / 396.3 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.6085, allocations: 144.4 kB / 396.5 MB, free: 9.715 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/0.609, allocations: 238 kB / 396.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005335/0.6095, allocations: 452.3 kB / 397.2 MB, free: 9.289 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.6095, allocations: 3.969 kB / 397.2 MB, free: 9.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001366/0.6109, allocations: 0.8192 MB / 398 MB, free: 8.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.6111, allocations: 293.4 kB / 398.3 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.6111, allocations: 4 kB / 398.3 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.6111, allocations: 11 kB / 398.3 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.6113, allocations: 14.97 kB / 398.3 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.6113, allocations: 10.75 kB / 398.3 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.6116, allocations: 32.92 kB / 398.3 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-05/0.6117, allocations: 26.38 kB / 398.4 MB, free: 8.574 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.0004465/0.6121, allocations: 406.1 kB / 398.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-05/0.6122, allocations: 42.69 kB / 398.8 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.855e-05/0.6123, allocations: 25.31 kB / 398.8 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.6123, allocations: 3.844 kB / 398.8 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.6123, allocations: 0 / 398.8 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.6123, allocations: 3.75 kB / 398.8 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.6134, allocations: 0.8208 MB / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.6135, allocations: 3.594 kB / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.422e-05/0.6135, allocations: 0 / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.6135, allocations: 3.906 kB / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.6136, allocations: 17.97 kB / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.6136, allocations: 3.781 kB / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6136, allocations: 0 / 399.7 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.6151, allocations: 0.9001 MB / 400.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.367e-05/0.6152, allocations: 100.4 kB / 400.7 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.6154, allocations: 27.92 kB / 400.7 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.6157, allocations: 31.03 kB / 400.7 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.6158, allocations: 24.56 kB / 400.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.602e-05/0.616, allocations: 38.48 kB / 400.8 MB, free: 7.297 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002805/0.6162, allocations: 204.5 kB / 401 MB, free: 7.219 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6163, allocations: 0 / 401 MB, free: 7.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008759/0.6171, allocations: 156.9 kB / 401.2 MB, free: 7.203 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.0006061/0.6178, allocations: 253.7 kB / 401.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.619, allocations: 0.9843 MB / 402.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.6191, allocations: 0 / 402.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006414/0.6197, allocations: 0.6028 MB / 403 MB, free: 6.066 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.6201, allocations: 22.67 kB / 403 MB, free: 6.062 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.6215, allocations: 0.7134 MB / 403.7 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.6221, allocations: 0.7846 MB / 404.5 MB, free: 21.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.6221, allocations: 15.19 kB / 404.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6221, allocations: 0 / 404.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of Templates: time 0.00997/0.6321, allocations: 4.414 MB / 408.9 MB, free: 20.13 MB / 330.7 MB