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 1.94/1.94, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003414, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.09176, allocations: 44.51 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002412/0.09423, allocations: 1.3 MB / 310.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002331/0.09661, allocations: 0.987 MB / 311.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.09678, allocations: 4 kB / 311.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.09703, allocations: 67.78 kB / 311.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.09722, allocations: 87.78 kB / 311.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.09887, allocations: 335.3 kB / 311.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003397/0.09922, allocations: 163.7 kB / 312 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.09937, allocations: 37.58 kB / 312 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.09954, allocations: 91.72 kB / 312.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.09979, allocations: 119.6 kB / 312.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.09985, allocations: 8 kB / 312.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005813/0.1004, allocations: 235.7 kB / 312.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.1006, allocations: 63.81 kB / 312.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1007, allocations: 65.58 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.1013, allocations: 315.7 kB / 312.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1013, allocations: 0 / 312.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1013, allocations: 0 / 312.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1013, allocations: 0 / 312.9 MB, free: 12.48 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001168/0.1025, allocations: 0.8039 MB / 313.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1026, allocations: 8.031 kB / 313.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.1027, allocations: 39.61 kB / 313.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.1032, allocations: 270.4 kB / 314 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.1032, allocations: 12.19 kB / 314 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.1033, allocations: 20 kB / 314 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006417/0.1039, allocations: 269.1 kB / 314.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.104, allocations: 0 / 314.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.104, allocations: 7.938 kB / 314.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-05/0.1041, allocations: 11.98 kB / 314.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.1045, allocations: 143.8 kB / 314.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.1057, allocations: 0.9661 MB / 315.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.1062, allocations: 234.5 kB / 315.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.1063, allocations: 8.109 kB / 315.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008353/0.1071, allocations: 0.5321 MB / 316.2 MB, free: 8.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=34): time 2.996e-06/0.1072, allocations: 4 kB / 316.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=34): time 0.002137/0.1093, allocations: 1.257 MB / 317.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003214/0.1097, allocations: 498.6 kB / 318 MB, free: 6.809 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.1101, allocations: 298.5 kB / 318.2 MB, free: 6.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-05/0.1102, allocations: 41.7 kB / 318.3 MB, free: 6.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.1104, allocations: 145 kB / 318.4 MB, free: 6.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.1105, allocations: 82.98 kB / 318.5 MB, free: 6.227 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.1106, allocations: 8 kB / 318.5 MB, free: 6.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1107, allocations: 350.9 kB / 318.9 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.1111, allocations: 132.5 kB / 319 MB, free: 5.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.1115, allocations: 213.6 kB / 319.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005394/0.112, allocations: 428.8 kB / 319.6 MB, free: 5.016 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1121, allocations: 4 kB / 319.6 MB, free: 5.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001381/0.1134, allocations: 0.7712 MB / 320.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.1137, allocations: 297 kB / 320.7 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1137, allocations: 4.547 kB / 320.7 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.1138, allocations: 4 kB / 320.7 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.1139, allocations: 19.92 kB / 320.7 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.1139, allocations: 7.938 kB / 320.7 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.1142, allocations: 43.77 kB / 320.8 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.842e-05/0.1143, allocations: 16 kB / 320.8 MB, free: 3.727 MB / 266.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,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition6,$whenCondition7,$whenCondition8,$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],$whenCondition3,$whenCondition4,$whenCondition5,$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],$whenCondition2,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition1,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,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.0005174/0.1148, allocations: 408.2 kB / 321.2 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1149, allocations: 39.62 kB / 321.2 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.04e-05/0.115, allocations: 26.17 kB / 321.2 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.115, allocations: 7.922 kB / 321.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.115, allocations: 192 / 321.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.1151, allocations: 108.7 kB / 321.3 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.1153, allocations: 24 kB / 321.4 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.1156, allocations: 31.97 kB / 321.4 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.1157, allocations: 27.92 kB / 321.4 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001956/0.1177, allocations: 1.382 MB / 322.8 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001774/0.1195, allocations: 1.14 MB / 324 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005555/0.1201, allocations: 259.9 kB / 324.2 MB, free: 60 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000336/0.1204, allocations: 214 kB / 324.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of Backend: time 7.82e-07/0.1204, allocations: 0 / 324.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.1223, allocations: 0.9923 MB / 325.4 MB, free: 14.72 MB / 282.7 MB Notification: Performance of SimCode: time 0.001618/0.124, allocations: 1.289 MB / 326.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of Templates: time 0.01326/0.1373, allocations: 4.215 MB / 330.9 MB, free: 9.102 MB / 282.7 MB "" Variables in the reference:time,booleanTable.y,integerTable.y,start.on,start.reset[1],stop.on,stop.reset[1] Variables in the result:booleanTable.n,booleanTable.startValue,booleanTable.table[1],booleanTable.table[2],booleanTable.table[3],booleanTable.table[4],booleanTable.table[5],booleanTable.table[6],booleanTable.table[7],booleanTable.table[8],booleanTable.table[9],booleanTable.y,integerTable.n,integerTable.table[1,1],integerTable.table[1,2],integerTable.table[2,1],integerTable.table[2,2],integerTable.table[3,1],integerTable.table[3,2],integerTable.table[4,1],integerTable.table[4,2],integerTable.table[5,1],integerTable.table[5,2],integerTable.table[6,1],integerTable.table[6,2],integerTable.y,realValue.significantDigits,start.buttonTimeTable[1],start.buttonTimeTable[2],start.nReset,start.on,start.reset[1],start.table.n,start.table.startValue,start.table.table[1],start.table.table[2],stop.buttonTimeTable[1],stop.buttonTimeTable[2],stop.nReset,stop.on,stop.reset[1],stop.table.n,stop.table.startValue,stop.table.table[1],stop.table.table[2],time,timeTable.offset,timeTable.startTime,timeTable.table[1,1],timeTable.table[1,2],timeTable.table[2,1],timeTable.table[2,2],timeTable.table[3,1],timeTable.table[3,2],timeTable.table[4,1],timeTable.table[4,2],timeTable.table[5,1],timeTable.table[5,2],timeTable.table[6,1],timeTable.table[6,2],timeTable.table[7,1],timeTable.table[7,2],timeTable.timeScale