Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.04e-05, allocations: 3.125 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 44.5 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3297/0.4435, allocations: 71.82 MB / 371.7 MB, free: 21.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.4438, allocations: 64.38 kB / 371.7 MB, free: 21.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007172/0.451, allocations: 1.661 MB / 373.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.87e-06/0.451, allocations: 0.8906 kB / 373.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.965e-06/0.4511, allocations: 1.469 kB / 373.4 MB, free: 21.3 MB / 314.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.0004509/0.4515, allocations: 423.3 kB / 373.8 MB, free: 20.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.4516, allocations: 9.5 kB / 373.8 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.4517, allocations: 13 kB / 373.8 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.4518, allocations: 175.1 kB / 374 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.4518, allocations: 2.594 kB / 374 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.4519, allocations: 7.906 kB / 374 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.4521, allocations: 94.17 kB / 374.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.4521, allocations: 1.859 kB / 374.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.4521, allocations: 5.906 kB / 374.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.4521, allocations: 5.219 kB / 374.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.4523, allocations: 32.88 kB / 374.1 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004347/0.4527, allocations: 384.1 kB / 374.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.4529, allocations: 92.7 kB / 374.6 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.912e-05/0.453, allocations: 45.44 kB / 374.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.453, allocations: 1.688 kB / 374.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.4533, allocations: 145.8 kB / 374.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.716e-06/0.4533, allocations: 0 / 374.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003782/0.4537, allocations: 154.2 kB / 374.9 MB, free: 19.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.4538, allocations: 164.2 kB / 375.1 MB, free: 19.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.4539, allocations: 121.8 kB / 375.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.4539, allocations: 28.12 kB / 375.3 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.454, allocations: 158.7 kB / 375.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.454, allocations: 26.47 kB / 375.4 MB, free: 19.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-06/0.454, allocations: 5.25 kB / 375.4 MB, free: 19.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/0.4541, allocations: 323.8 kB / 375.8 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.72e-05/0.4542, allocations: 22.02 kB / 375.8 MB, free: 19.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.124e-05/0.4543, allocations: 54.39 kB / 375.8 MB, free: 19.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.729e-05/0.4544, allocations: 79.36 kB / 375.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.087e-06/0.4544, allocations: 0 / 375.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003111/0.4548, allocations: 180.8 kB / 376.1 MB, free: 18.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.4548, allocations: 60.95 kB / 376.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.811e-06/0.4548, allocations: 1.219 kB / 376.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.4549, allocations: 2.594 kB / 376.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.537e-05/0.4549, allocations: 6.969 kB / 376.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.981e-06/0.4549, allocations: 3.016 kB / 376.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.4551, allocations: 15.91 kB / 376.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.4551, allocations: 5.047 kB / 376.2 MB, free: 18.88 MB / 314.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 9.584e-05/0.4552, allocations: 157 kB / 376.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.4553, allocations: 14.16 kB / 376.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.4553, allocations: 12.55 kB / 376.4 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.887e-06/0.4554, allocations: 6.219 kB / 376.4 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.978e-06/0.4554, allocations: 5.625 kB / 376.4 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.4554, allocations: 3.984 kB / 376.4 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.4556, allocations: 197.1 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.122e-06/0.4556, allocations: 1.094 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.553e-05/0.4556, allocations: 6.062 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.848e-06/0.4557, allocations: 1 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.4557, allocations: 3.734 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.45e-06/0.4557, allocations: 1.656 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.596e-06/0.4557, allocations: 1.188 kB / 376.6 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.4561, allocations: 236 kB / 376.8 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.4562, allocations: 87.97 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.4562, allocations: 8.422 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.4564, allocations: 14.19 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.4564, allocations: 16.88 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.4565, allocations: 5.125 kB / 376.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.915e-05/0.4566, allocations: 106.6 kB / 377 MB, free: 18.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.14e-07/0.4566, allocations: 0 / 377 MB, free: 18.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003608/0.457, allocations: 31.53 kB / 377.1 MB, free: 18.17 MB / 314.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.0002135/0.4572, allocations: 124.9 kB / 377.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002932/0.4575, allocations: 186.6 kB / 377.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.03e-06/0.4575, allocations: 0 / 377.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001705/0.4577, allocations: 116 kB / 377.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.4579, allocations: 18.97 kB / 377.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.4584, allocations: 175.6 kB / 377.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.4585, allocations: 0.7007 MB / 378.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.597e-05/0.4586, allocations: 11.28 kB / 378.4 MB, free: 17.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.424e-06/0.4586, allocations: 0 / 378.4 MB, free: 17.05 MB / 314.7 MB Notification: Performance of Templates: time 0.00367/0.4623, allocations: 1.342 MB / 379.7 MB, free: 16.95 MB / 314.7 MB