Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.576/1.576, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.35e-05/2.359e-05, allocations: 0 / 228.8 MB, free: 15.46 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2037, allocations: 38.77 MB / 267.6 MB, free: 9.461 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09904/0.3028, allocations: 66.52 MB / 334.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.303, allocations: 59.98 kB / 334.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007394/0.3104, allocations: 1.71 MB / 335.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.766e-06/0.3105, allocations: 0 / 335.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3105, allocations: 8 kB / 335.9 MB, free: 5.066 MB / 282.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.0005661/0.3111, allocations: 425.8 kB / 336.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.3112, allocations: 16.02 kB / 336.3 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.293e-05/0.3112, allocations: 7.906 kB / 336.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.3114, allocations: 167 kB / 336.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.3114, allocations: 8 kB / 336.5 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.3115, allocations: 4 kB / 336.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.3117, allocations: 101 kB / 336.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.3117, allocations: 0 / 336.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.3118, allocations: 11.88 kB / 336.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3118, allocations: 0 / 336.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.3119, allocations: 31.98 kB / 336.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.3125, allocations: 390.8 kB / 337 MB, free: 3.754 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.3127, allocations: 87.72 kB / 337.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.3128, allocations: 56.41 kB / 337.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.3128, allocations: 3.984 kB / 337.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.3131, allocations: 139.5 kB / 337.3 MB, free: 3.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.394e-06/0.3131, allocations: 4 kB / 337.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003923/0.3135, allocations: 159.2 kB / 337.5 MB, free: 3.238 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3136, allocations: 162.3 kB / 337.6 MB, free: 3.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.3138, allocations: 121.3 kB / 337.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.3138, allocations: 29.7 kB / 337.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.114e-05/0.314, allocations: 158.8 kB / 337.9 MB, free: 2.719 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.314, allocations: 23.78 kB / 337.9 MB, free: 2.695 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.13e-06/0.314, allocations: 0 / 337.9 MB, free: 2.695 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3142, allocations: 314.8 kB / 338.2 MB, free: 2.379 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.958e-05/0.3143, allocations: 28 kB / 338.3 MB, free: 2.352 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.815e-05/0.3144, allocations: 55.36 kB / 338.3 MB, free: 2.285 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.3145, allocations: 83.45 kB / 338.4 MB, free: 2.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.968e-06/0.3145, allocations: 0 / 338.4 MB, free: 2.191 MB / 282.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003399/0.3149, allocations: 176.9 kB / 338.6 MB, free: 2 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-05/0.315, allocations: 65.28 kB / 338.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.063e-06/0.315, allocations: 4.062 kB / 338.6 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.315, allocations: 4 kB / 338.7 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.132e-05/0.3151, allocations: 11.92 kB / 338.7 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.815e-06/0.3151, allocations: 0 / 338.7 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.3153, allocations: 19.92 kB / 338.7 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.3153, allocations: 11.94 kB / 338.7 MB, free: 1.875 MB / 282.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 () * 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.0001372/0.3154, allocations: 138.7 kB / 338.8 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.608e-05/0.3155, allocations: 15.86 kB / 338.8 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.3156, allocations: 16.08 kB / 338.9 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.672e-06/0.3156, allocations: 4 kB / 338.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.266e-06/0.3156, allocations: 0 / 338.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.392e-06/0.3156, allocations: 0 / 338.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002418/0.3159, allocations: 193.5 kB / 339.1 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.185e-06/0.3159, allocations: 4 kB / 339.1 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.446e-05/0.3159, allocations: 3.938 kB / 339.1 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.816e-06/0.3159, allocations: 3.953 kB / 339.1 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.316, allocations: 8 kB / 339.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.683e-06/0.316, allocations: 4 kB / 339.1 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.476e-06/0.316, allocations: 4 kB / 339.1 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.3164, allocations: 227.7 kB / 339.3 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.3165, allocations: 89.02 kB / 339.4 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.3165, allocations: 8 kB / 339.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.3167, allocations: 15.98 kB / 339.4 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.3168, allocations: 11.98 kB / 339.4 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.3168, allocations: 7.984 kB / 339.4 MB, free: 1.004 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001002/0.3169, allocations: 100.1 kB / 339.5 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.3169, allocations: 0 / 339.5 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000344/0.3173, allocations: 31.98 kB / 339.6 MB, free: 0.875 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.00023/0.3175, allocations: 123.2 kB / 339.7 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.3179, allocations: 194.9 kB / 339.9 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.011e-06/0.3179, allocations: 0 / 339.9 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.3181, allocations: 119.3 kB / 340 MB, free: 412 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.3183, allocations: 23.11 kB / 340 MB, free: 392 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004347/0.3188, allocations: 188.7 kB / 340.2 MB, free: 172 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.3192, allocations: 0.7004 MB / 340.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.3193, allocations: 11.44 kB / 340.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.417e-06/0.3193, allocations: 0 / 340.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of Templates: time 0.003598/0.3229, allocations: 1.353 MB / 342.3 MB, free: 14.09 MB / 298.7 MB