Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.027e-05/3.031e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09107, allocations: 50.41 MB / 342.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3564/0.4475, allocations: 81.93 MB / 424.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.4478, allocations: 80.02 kB / 424.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02558/0.4734, allocations: 6.212 MB / 430.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.125e-06/0.4734, allocations: 0 / 430.8 MB, free: 6.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.4735, allocations: 7.938 kB / 430.8 MB, free: 6.809 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001264/0.4747, allocations: 0.5966 MB / 431.4 MB, free: 6.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.4748, allocations: 12.03 kB / 431.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.4749, allocations: 39.52 kB / 431.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004939/0.4754, allocations: 277.6 kB / 431.7 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.151e-05/0.4755, allocations: 19.62 kB / 431.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.4756, allocations: 23.12 kB / 431.7 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.4762, allocations: 268.5 kB / 432 MB, free: 5.633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.4762, allocations: 3.953 kB / 432 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.4763, allocations: 14.56 kB / 432 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.4763, allocations: 8 kB / 432 MB, free: 5.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.4768, allocations: 175.3 kB / 432.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002631/0.4794, allocations: 1.222 MB / 433.4 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.4798, allocations: 103.2 kB / 433.5 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.4799, allocations: 42.05 kB / 433.6 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.48, allocations: 4 kB / 433.6 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.4803, allocations: 116.4 kB / 433.7 MB, free: 4.168 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.11e-06/0.4803, allocations: 0 / 433.7 MB, free: 4.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.000493/0.4808, allocations: 148.6 kB / 433.8 MB, free: 4.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.4809, allocations: 88.3 kB / 433.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.4813, allocations: 288.8 kB / 434.2 MB, free: 3.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.4814, allocations: 29.73 kB / 434.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.4816, allocations: 261.2 kB / 434.5 MB, free: 3.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.112e-05/0.4816, allocations: 38.62 kB / 434.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.4817, allocations: 3.562 kB / 434.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4819, allocations: 318 kB / 434.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.482, allocations: 57.78 kB / 434.9 MB, free: 3.062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.4823, allocations: 164.2 kB / 435.1 MB, free: 2.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.4825, allocations: 97.31 kB / 435.1 MB, free: 2.797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.982e-06/0.4825, allocations: 4 kB / 435.1 MB, free: 2.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006995/0.4833, allocations: 278.1 kB / 435.4 MB, free: 2.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.4833, allocations: 37.7 kB / 435.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.4833, allocations: 4 kB / 435.5 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.4836, allocations: 28.28 kB / 435.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.484, allocations: 79.31 kB / 435.6 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.4854, allocations: 1.304 MB / 436.9 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.4859, allocations: 63.06 kB / 436.9 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.486, allocations: 8 kB / 436.9 MB, free: 0.9648 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.4861, allocations: 127.5 kB / 437.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.4862, allocations: 23.72 kB / 437.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.031e-05/0.4863, allocations: 34.8 kB / 437.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.254e-06/0.4863, allocations: 3.938 kB / 437.1 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.666e-06/0.4863, allocations: 4 kB / 437.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.787e-06/0.4863, allocations: 3.953 kB / 437.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/0.487, allocations: 455.5 kB / 437.6 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.401e-06/0.487, allocations: 0 / 437.6 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002376/0.4872, allocations: 36 kB / 437.6 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001548/0.4874, allocations: 24.72 kB / 437.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.4875, allocations: 7.984 kB / 437.6 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.4888, allocations: 1.297 MB / 438.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.54e-06/0.4888, allocations: 0 / 438.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004401/0.4893, allocations: 200.5 kB / 439.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.4894, allocations: 108.7 kB / 439.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.4895, allocations: 0 / 439.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.4898, allocations: 31.59 kB / 439.3 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.4899, allocations: 23.03 kB / 439.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.4899, allocations: 4 kB / 439.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000345/0.4903, allocations: 230.2 kB / 439.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.4903, allocations: 0 / 439.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005192/0.4908, allocations: 67.66 kB / 439.6 MB, free: 14.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001793/0.491, allocations: 110.8 kB / 439.7 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006612/0.4917, allocations: 304.3 kB / 440 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.294e-06/0.4917, allocations: 3.938 kB / 440 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.4921, allocations: 155.8 kB / 440.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.4924, allocations: 48.45 kB / 440.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007831/0.4932, allocations: 323 kB / 440.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.4937, allocations: 0.7677 MB / 441.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.4939, allocations: 26 kB / 441.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.77e-06/0.4939, allocations: 288 / 441.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of Templates: time 0.00886/0.5027, allocations: 4.443 MB / 445.8 MB, free: 8.199 MB / 362.7 MB