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.554/1.554, allocations: 171.2 MB / 186.8 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 8 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06758/0.06795, allocations: 38.76 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2995/0.3675, allocations: 66.6 MB / 338.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.3677, allocations: 60.34 kB / 338.7 MB, free: 7.195 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007656/0.3754, allocations: 1.727 MB / 340.4 MB, free: 5.676 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.466e-06/0.3755, allocations: 4 kB / 340.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.553e-06/0.3755, allocations: 7.938 kB / 340.4 MB, free: 5.664 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.0008339/0.3764, allocations: 440.4 kB / 340.8 MB, free: 5.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.437e-05/0.3764, allocations: 16.02 kB / 340.8 MB, free: 5.164 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/0.3765, allocations: 7.906 kB / 340.9 MB, free: 5.156 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.3768, allocations: 168.9 kB / 341 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.3769, allocations: 4 kB / 341 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.3769, allocations: 11.81 kB / 341 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.3774, allocations: 103.4 kB / 341.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3774, allocations: 0 / 341.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.3774, allocations: 0 / 341.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.3775, allocations: 4 kB / 341.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.3778, allocations: 42.36 kB / 341.2 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009197/0.3787, allocations: 392.3 kB / 341.6 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.3791, allocations: 98.42 kB / 341.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.3792, allocations: 0 / 341.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003921/0.3796, allocations: 145.6 kB / 341.8 MB, free: 4.113 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 3.294e-06/0.3796, allocations: 0 / 341.8 MB, free: 4.113 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0008982/0.3805, allocations: 284.9 kB / 342.1 MB, free: 3.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.3807, allocations: 161.5 kB / 342.2 MB, free: 3.645 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.3809, allocations: 127.6 kB / 342.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.381, allocations: 29.27 kB / 342.4 MB, free: 3.488 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.3811, allocations: 154.2 kB / 342.5 MB, free: 3.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.364e-05/0.3812, allocations: 23.39 kB / 342.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.3812, allocations: 11.84 kB / 342.6 MB, free: 3.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.3814, allocations: 314.8 kB / 342.9 MB, free: 2.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.3816, allocations: 27.17 kB / 342.9 MB, free: 2.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3818, allocations: 54.05 kB / 343 MB, free: 2.918 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.3821, allocations: 85.95 kB / 343 MB, free: 2.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.929e-06/0.3821, allocations: 0 / 343 MB, free: 2.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006621/0.3828, allocations: 193.8 kB / 343.2 MB, free: 2.648 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/0.3829, allocations: 66.39 kB / 343.3 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.464e-06/0.3829, allocations: 0 / 343.3 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.383, allocations: 0 / 343.3 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.989e-05/0.3831, allocations: 4 kB / 343.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3831, allocations: 4 kB / 343.3 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.3833, allocations: 16.05 kB / 343.3 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.3834, allocations: 7.5 kB / 343.3 MB, free: 2.547 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.0002368/0.3836, allocations: 157.6 kB / 343.5 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.687e-05/0.3837, allocations: 11.86 kB / 343.5 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.3838, allocations: 12.12 kB / 343.5 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3838, allocations: 4 kB / 343.5 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.165e-06/0.3838, allocations: 4 kB / 343.5 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.22e-06/0.3838, allocations: 0 / 343.5 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.3842, allocations: 203.6 kB / 343.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.3843, allocations: 7.938 kB / 343.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.912e-05/0.3843, allocations: 0 / 343.7 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.239e-06/0.3843, allocations: 3.953 kB / 343.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.3844, allocations: 4 kB / 343.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.709e-06/0.3844, allocations: 3.984 kB / 343.7 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.147e-06/0.3844, allocations: 4 kB / 343.7 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007119/0.3851, allocations: 242.9 kB / 344 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.65e-05/0.3853, allocations: 85.02 kB / 344.1 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.3853, allocations: 4 kB / 344.1 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.3856, allocations: 15.23 kB / 344.1 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3857, allocations: 15.98 kB / 344.1 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.3858, allocations: 11.48 kB / 344.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001515/0.3859, allocations: 102.8 kB / 344.2 MB, free: 1.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.6e-07/0.3859, allocations: 0 / 344.2 MB, free: 1.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006561/0.3866, allocations: 31.94 kB / 344.2 MB, free: 1.578 MB / 266.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) * Number of clocked states: 0 () * 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.0003403/0.387, allocations: 130 kB / 344.4 MB, free: 1.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005884/0.3876, allocations: 203 kB / 344.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.555e-06/0.3876, allocations: 0 / 344.6 MB, free: 1.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.388, allocations: 124.4 kB / 344.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.3884, allocations: 11.95 kB / 344.7 MB, free: 1.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008073/0.3892, allocations: 253.9 kB / 344.9 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.3897, allocations: 0.6926 MB / 345.6 MB, free: 148 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.526e-05/0.3898, allocations: 11.44 kB / 345.6 MB, free: 140 kB / 266.7 MB Notification: Performance of SimCode: time 1.946e-06/0.3898, allocations: 4 kB / 345.6 MB, free: 136 kB / 266.7 MB Notification: Performance of Templates: time 0.006149/0.396, allocations: 1.35 MB / 347 MB, free: 14.79 MB / 282.7 MB