Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.145/1.145, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.587e-05/2.593e-05, allocations: 4 kB / 151.4 MB, free: 15.6 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1634, allocations: 25.15 MB / 176.5 MB, free: 12 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06226/0.2257, allocations: 33.93 MB / 210.5 MB, free: 15.54 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.2259, allocations: 51.98 kB / 210.5 MB, free: 15.48 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006561/0.2325, allocations: 1.559 MB / 212.1 MB, free: 13.93 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.089e-06/0.2325, allocations: 3.938 kB / 212.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.2325, allocations: 0 / 212.1 MB, free: 13.92 MB / 186.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.0005802/0.2331, allocations: 425.9 kB / 212.5 MB, free: 13.45 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.2332, allocations: 12.02 kB / 212.5 MB, free: 13.44 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.2332, allocations: 15.86 kB / 212.5 MB, free: 13.42 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.2334, allocations: 174.9 kB / 212.7 MB, free: 13.21 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.2335, allocations: 8 kB / 212.7 MB, free: 13.2 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.2335, allocations: 4 kB / 212.7 MB, free: 13.2 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.2337, allocations: 93.11 kB / 212.8 MB, free: 13.09 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2338, allocations: 7.938 kB / 212.8 MB, free: 13.08 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.2338, allocations: 0 / 212.8 MB, free: 13.08 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.458e-06/0.2338, allocations: 3.953 kB / 212.8 MB, free: 13.08 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.2339, allocations: 28 kB / 212.8 MB, free: 13.05 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005707/0.2345, allocations: 394.7 kB / 213.2 MB, free: 12.61 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.2347, allocations: 87.75 kB / 213.3 MB, free: 12.49 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.2349, allocations: 54.64 kB / 213.4 MB, free: 12.43 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.2349, allocations: 0 / 213.4 MB, free: 12.43 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.2352, allocations: 143.6 kB / 213.5 MB, free: 12.26 MB / 186.7 MB Notification: Performance of pre-optimization done (n=10): time 2.63e-06/0.2352, allocations: 0 / 213.5 MB, free: 12.26 MB / 186.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003992/0.2356, allocations: 151.2 kB / 213.6 MB, free: 12.1 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.2357, allocations: 170.1 kB / 213.8 MB, free: 11.9 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.2359, allocations: 126.7 kB / 213.9 MB, free: 11.77 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.317e-05/0.236, allocations: 25.7 kB / 214 MB, free: 11.73 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2361, allocations: 158.8 kB / 214.1 MB, free: 11.57 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.2361, allocations: 23.78 kB / 214.1 MB, free: 11.55 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.2362, allocations: 4 kB / 214.1 MB, free: 11.55 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2363, allocations: 310.8 kB / 214.4 MB, free: 11.23 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.66e-05/0.2364, allocations: 24 kB / 214.5 MB, free: 11.21 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.2365, allocations: 55.42 kB / 214.5 MB, free: 11.14 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.2367, allocations: 87.38 kB / 214.6 MB, free: 11.05 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-06/0.2367, allocations: 0 / 214.6 MB, free: 11.05 MB / 186.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003398/0.237, allocations: 172.9 kB / 214.8 MB, free: 10.86 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.111e-05/0.2371, allocations: 60.19 kB / 214.8 MB, free: 10.79 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1e-05/0.2371, allocations: 3.953 kB / 214.8 MB, free: 10.79 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.2372, allocations: 7.938 kB / 214.8 MB, free: 10.78 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.295e-05/0.2372, allocations: 11.92 kB / 214.9 MB, free: 10.77 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.409e-06/0.2373, allocations: 4.062 kB / 214.9 MB, free: 10.76 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.2374, allocations: 12 kB / 214.9 MB, free: 10.75 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.2375, allocations: 7.984 kB / 214.9 MB, free: 10.74 MB / 186.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.0001491/0.2376, allocations: 146.6 kB / 215 MB, free: 10.59 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.2377, allocations: 7.906 kB / 215 MB, free: 10.58 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.2377, allocations: 16.08 kB / 215 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.519e-06/0.2377, allocations: 7.953 kB / 215.1 MB, free: 10.55 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.035e-06/0.2378, allocations: 4 kB / 215.1 MB, free: 10.55 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.812e-06/0.2378, allocations: 3.938 kB / 215.1 MB, free: 10.55 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.238, allocations: 193.6 kB / 215.3 MB, free: 10.31 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.709e-06/0.2381, allocations: 0 / 215.3 MB, free: 10.31 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.978e-05/0.2381, allocations: 11.92 kB / 215.3 MB, free: 10.3 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.896e-06/0.2381, allocations: 192 / 215.3 MB, free: 10.3 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.2381, allocations: 8 kB / 215.3 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.777e-06/0.2381, allocations: 0 / 215.3 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.155e-06/0.2382, allocations: 3.953 kB / 215.3 MB, free: 10.29 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.2386, allocations: 231.8 kB / 215.5 MB, free: 10.02 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.105e-05/0.2387, allocations: 92.88 kB / 215.6 MB, free: 9.906 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.2387, allocations: 4 kB / 215.6 MB, free: 9.902 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.2389, allocations: 19.98 kB / 215.6 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.046e-05/0.239, allocations: 11.98 kB / 215.6 MB, free: 9.871 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.239, allocations: 7.984 kB / 215.6 MB, free: 9.863 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001061/0.2391, allocations: 100.7 kB / 215.7 MB, free: 9.766 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.2391, allocations: 0 / 215.7 MB, free: 9.766 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003638/0.2395, allocations: 39.98 kB / 215.8 MB, free: 9.727 MB / 186.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.0002421/0.2398, allocations: 119.2 kB / 215.9 MB, free: 9.598 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003466/0.2401, allocations: 190.7 kB / 216.1 MB, free: 9.387 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.97e-06/0.2402, allocations: 0 / 216.1 MB, free: 9.387 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.2404, allocations: 119.3 kB / 216.2 MB, free: 9.258 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.2406, allocations: 21.69 kB / 216.2 MB, free: 9.238 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004463/0.2411, allocations: 180.6 kB / 216.4 MB, free: 9.031 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.2415, allocations: 0.6968 MB / 217.1 MB, free: 8.309 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.2415, allocations: 11.44 kB / 217.1 MB, free: 8.297 MB / 186.7 MB Notification: Performance of SimCode: time 1.52e-06/0.2416, allocations: 4 kB / 217.1 MB, free: 8.293 MB / 186.7 MB Notification: Performance of Templates: time 0.003934/0.2455, allocations: 1.36 MB / 218.5 MB, free: 6.938 MB / 186.7 MB