Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.715/1.715, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004671, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.08176, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001982/0.0838, allocations: 1.138 MB / 273.8 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.08505, allocations: 0.5162 MB / 274.3 MB, free: 9.871 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.209e-05/0.08513, allocations: 0 / 274.3 MB, free: 9.871 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.859e-05/0.08518, allocations: 0 / 274.3 MB, free: 9.871 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.08531, allocations: 19.91 kB / 274.3 MB, free: 9.852 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.08582, allocations: 75.77 kB / 274.4 MB, free: 9.777 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.08595, allocations: 51.89 kB / 274.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.234e-05/0.08602, allocations: 12.11 kB / 274.4 MB, free: 9.715 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.363e-05/0.0861, allocations: 19.92 kB / 274.4 MB, free: 9.695 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.536e-05/0.08619, allocations: 39.83 kB / 274.5 MB, free: 9.656 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.08622, allocations: 4 kB / 274.5 MB, free: 9.652 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.08636, allocations: 35.97 kB / 274.5 MB, free: 9.617 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.08642, allocations: 11.94 kB / 274.5 MB, free: 9.605 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.565e-05/0.08648, allocations: 41.69 kB / 274.6 MB, free: 9.559 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.08665, allocations: 59.89 kB / 274.6 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.08667, allocations: 4 kB / 274.6 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.08668, allocations: 0 / 274.6 MB, free: 9.496 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.08669, allocations: 0 / 274.6 MB, free: 9.496 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007283/0.08743, allocations: 442.6 kB / 275.1 MB, free: 9.004 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.08749, allocations: 11.97 kB / 275.1 MB, free: 8.992 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.08755, allocations: 7.906 kB / 275.1 MB, free: 8.984 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.08771, allocations: 179 kB / 275.3 MB, free: 8.77 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.08775, allocations: 7.953 kB / 275.3 MB, free: 8.762 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.08778, allocations: 7.984 kB / 275.3 MB, free: 8.754 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.08805, allocations: 97.08 kB / 275.4 MB, free: 8.641 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.08807, allocations: 0 / 275.4 MB, free: 8.641 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.0881, allocations: 7.938 kB / 275.4 MB, free: 8.633 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.08811, allocations: 0 / 275.4 MB, free: 8.633 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.0883, allocations: 47.97 kB / 275.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.08885, allocations: 386.6 kB / 275.8 MB, free: 8.148 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.08909, allocations: 99.8 kB / 275.9 MB, free: 8.023 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.08913, allocations: 0 / 275.9 MB, free: 8.023 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.08944, allocations: 143.7 kB / 276 MB, free: 7.855 MB / 234.7 MB Notification: Performance of pre-optimization done (n=10): time 2.514e-06/0.08946, allocations: 4 kB / 276.1 MB, free: 7.852 MB / 234.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006426/0.09012, allocations: 276.3 kB / 276.3 MB, free: 7.551 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.09022, allocations: 162.2 kB / 276.5 MB, free: 7.355 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.09038, allocations: 134.1 kB / 276.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.09042, allocations: 29.7 kB / 276.6 MB, free: 7.176 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.778e-05/0.09049, allocations: 92.31 kB / 276.7 MB, free: 7.082 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.09054, allocations: 23.88 kB / 276.8 MB, free: 7.059 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.161e-05/0.09056, allocations: 4 kB / 276.8 MB, free: 7.055 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.09069, allocations: 330.7 kB / 277.1 MB, free: 6.723 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.09081, allocations: 27.98 kB / 277.1 MB, free: 6.695 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.09095, allocations: 55.36 kB / 277.2 MB, free: 6.629 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.0911, allocations: 91.38 kB / 277.3 MB, free: 6.527 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.09112, allocations: 0 / 277.3 MB, free: 6.527 MB / 234.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004528/0.09158, allocations: 180.9 kB / 277.4 MB, free: 6.332 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.811e-05/0.09166, allocations: 67.39 kB / 277.5 MB, free: 6.254 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.09168, allocations: 384 / 277.5 MB, free: 6.254 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.0917, allocations: 4 kB / 277.5 MB, free: 6.25 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.29e-05/0.09177, allocations: 3.938 kB / 277.5 MB, free: 6.246 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.0918, allocations: 8 kB / 277.5 MB, free: 6.238 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.09196, allocations: 23.92 kB / 277.5 MB, free: 6.215 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.09199, allocations: 4 kB / 277.5 MB, free: 6.211 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001598/0.09216, allocations: 159.5 kB / 277.7 MB, free: 6.039 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.749e-05/0.0922, allocations: 11.91 kB / 277.7 MB, free: 6.027 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.511e-05/0.09226, allocations: 12.31 kB / 277.7 MB, free: 6.016 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.09227, allocations: 0 / 277.7 MB, free: 6.016 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.09229, allocations: 4 kB / 277.7 MB, free: 6.012 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.09235, allocations: 89 kB / 277.8 MB, free: 5.906 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.0924, allocations: 8 kB / 277.8 MB, free: 5.898 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.09257, allocations: 11.98 kB / 277.8 MB, free: 5.887 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.09266, allocations: 19.88 kB / 277.8 MB, free: 5.867 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006236/0.0933, allocations: 472.5 kB / 278.3 MB, free: 5.379 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005549/0.09387, allocations: 0.491 MB / 278.8 MB, free: 4.863 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001744/0.09407, allocations: 60.17 kB / 278.9 MB, free: 4.805 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.327e-05/0.09417, allocations: 103.3 kB / 279 MB, free: 4.703 MB / 234.7 MB Notification: Performance of Backend: time 7.82e-07/0.09419, allocations: 0 / 279 MB, free: 4.703 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000706/0.0949, allocations: 267.1 kB / 279.2 MB, free: 4.41 MB / 234.7 MB Notification: Performance of SimCode: time 0.0007667/0.09569, allocations: 0.6888 MB / 279.9 MB, free: 3.668 MB / 234.7 MB Notification: Performance of Templates: time 0.005371/0.1011, allocations: 1.27 MB / 281.2 MB, free: 2.402 MB / 234.7 MB "" Variables in the reference:time,table.y Variables in the result:const.k,const.y,pulse.Twidth,pulse.period,pulse.startTime,pulse.width,sample.period,sample.startTime,step.startTime,step.startValue,table.n,table.startValue,table.table[1],table.table[2],table.table[3],table.table[4],table.y,time