Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003567, allocations: 16 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1019, allocations: 44.5 MB / 309.1 MB, free: 392 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002014/0.1039, allocations: 1.144 MB / 310.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1052, allocations: 0.5195 MB / 310.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.232e-05/0.1053, allocations: 4 kB / 310.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.844e-05/0.1053, allocations: 3.938 kB / 310.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.1054, allocations: 15.97 kB / 310.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.1059, allocations: 75.77 kB / 310.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.1061, allocations: 39.95 kB / 310.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.042e-05/0.1061, allocations: 12.16 kB / 310.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.877e-05/0.1062, allocations: 35.86 kB / 310.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.592e-05/0.1063, allocations: 27.89 kB / 310.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.1063, allocations: 4 kB / 310.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.1065, allocations: 39.97 kB / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.219e-05/0.1066, allocations: 7.938 kB / 311 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.886e-05/0.1066, allocations: 45.62 kB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1068, allocations: 63.89 kB / 311.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1068, allocations: 0 / 311.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1068, allocations: 0 / 311.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1069, allocations: 0 / 311.1 MB, free: 14.32 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007202/0.1076, allocations: 442.7 kB / 311.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1076, allocations: 8.031 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.1077, allocations: 7.906 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1079, allocations: 178.9 kB / 311.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.1079, allocations: 0 / 311.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.1079, allocations: 12 kB / 311.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.1082, allocations: 101 kB / 311.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.1082, allocations: 4 kB / 311.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.1083, allocations: 0 / 311.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1083, allocations: 0 / 311.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.1085, allocations: 43.91 kB / 311.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.109, allocations: 394.7 kB / 312.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.1093, allocations: 87.8 kB / 312.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.1093, allocations: 8 kB / 312.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002929/0.1096, allocations: 143.6 kB / 312.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 2.144e-06/0.1096, allocations: 0 / 312.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006636/0.1103, allocations: 284.4 kB / 312.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1104, allocations: 166.2 kB / 312.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.1106, allocations: 145.9 kB / 313.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.1107, allocations: 25.7 kB / 313.1 MB, free: 12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.1107, allocations: 96.31 kB / 313.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.1108, allocations: 15.81 kB / 313.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-06/0.1108, allocations: 0 / 313.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.111, allocations: 326.8 kB / 313.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.1111, allocations: 28.05 kB / 313.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1112, allocations: 55.42 kB / 313.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.1114, allocations: 83.38 kB / 313.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1114, allocations: 0 / 313.7 MB, free: 11.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004081/0.1118, allocations: 188.9 kB / 313.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.243e-05/0.1119, allocations: 63.39 kB / 313.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1119, allocations: 0 / 313.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1119, allocations: 4 kB / 313.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.815e-05/0.112, allocations: 4 kB / 313.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.112, allocations: 0 / 313.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001459/0.1122, allocations: 28.2 kB / 314 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.1122, allocations: 7.953 kB / 314 MB, free: 11.05 MB / 266.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.0001641/0.1124, allocations: 159.5 kB / 314.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.1124, allocations: 11.91 kB / 314.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.1125, allocations: 12.31 kB / 314.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1125, allocations: 0 / 314.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1125, allocations: 4 kB / 314.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.015e-05/0.1126, allocations: 89 kB / 314.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.208e-05/0.1126, allocations: 7.953 kB / 314.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.1128, allocations: 19.98 kB / 314.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.1129, allocations: 15.92 kB / 314.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006315/0.1135, allocations: 472.6 kB / 314.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005614/0.1141, allocations: 0.4911 MB / 315.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001688/0.1143, allocations: 59.97 kB / 315.3 MB, free: 9.637 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.182e-05/0.1144, allocations: 103.2 kB / 315.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of Backend: time 8.72e-07/0.1144, allocations: 4 kB / 315.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007193/0.1152, allocations: 265.1 kB / 315.7 MB, free: 9.242 MB / 266.7 MB Notification: Performance of SimCode: time 0.0007719/0.1159, allocations: 0.681 MB / 316.3 MB, free: 8.496 MB / 266.7 MB Notification: Performance of Templates: time 0.005369/0.1213, allocations: 1.265 MB / 317.6 MB, free: 7.234 MB / 266.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