Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.033e-05/3.051e-05, allocations: 4 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07614/0.07619, allocations: 44.51 MB / 299.9 MB, free: 6.609 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.4056, allocations: 75.3 MB / 375.2 MB, free: 22.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.4059, allocations: 81.14 kB / 375.3 MB, free: 22.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02131/0.4272, allocations: 5.548 MB / 380.8 MB, free: 21.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.4273, allocations: 5.188 kB / 380.8 MB, free: 21.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.4273, allocations: 5.125 kB / 380.8 MB, free: 21.33 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001032/0.4284, allocations: 0.5792 MB / 381.4 MB, free: 20.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4284, allocations: 10.03 kB / 381.4 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.4285, allocations: 33 kB / 381.4 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.429, allocations: 269.1 kB / 381.7 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.429, allocations: 23.5 kB / 381.7 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.4291, allocations: 27 kB / 381.7 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.4297, allocations: 223.6 kB / 382 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.4297, allocations: 3.938 kB / 382 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.4297, allocations: 10.81 kB / 382 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.4e-06/0.4298, allocations: 10.5 kB / 382 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.4303, allocations: 169.4 kB / 382.2 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.4325, allocations: 1.086 MB / 383.2 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.4329, allocations: 102.1 kB / 383.3 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.4331, allocations: 45.06 kB / 383.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.4331, allocations: 1.312 kB / 383.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.4334, allocations: 118.1 kB / 383.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.321e-06/0.4334, allocations: 0 / 383.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004732/0.4339, allocations: 143.3 kB / 383.6 MB, free: 19.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.4339, allocations: 81.69 kB / 383.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000446/0.4344, allocations: 288.5 kB / 384 MB, free: 19.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.4344, allocations: 27.14 kB / 384 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.4345, allocations: 261.4 kB / 384.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.4346, allocations: 30.41 kB / 384.3 MB, free: 19.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-05/0.4346, allocations: 4.844 kB / 384.3 MB, free: 19.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.4347, allocations: 319.8 kB / 384.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.4349, allocations: 58.66 kB / 384.7 MB, free: 19.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.4351, allocations: 149.9 kB / 384.8 MB, free: 18.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.4353, allocations: 94.59 kB / 384.9 MB, free: 18.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.015e-06/0.4353, allocations: 1.5 kB / 384.9 MB, free: 18.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009535/0.4363, allocations: 272.8 kB / 385.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.4364, allocations: 37.23 kB / 385.2 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.4364, allocations: 3.219 kB / 385.2 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002109/0.4366, allocations: 43.72 kB / 385.3 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.437, allocations: 53.08 kB / 385.3 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009581/0.4379, allocations: 1.301 MB / 386.6 MB, free: 17.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/0.4384, allocations: 60.66 kB / 386.7 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.4384, allocations: 13.38 kB / 386.7 MB, free: 17.49 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (26): * Single equations (assignments): 24 * 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 9.442e-05/0.4385, allocations: 121.4 kB / 386.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.204e-05/0.4386, allocations: 31.98 kB / 386.9 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.4387, allocations: 28.42 kB / 386.9 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.996e-06/0.4387, allocations: 1.375 kB / 386.9 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.658e-06/0.4387, allocations: 6.953 kB / 386.9 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.581e-06/0.4387, allocations: 0 / 386.9 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.4393, allocations: 448.2 kB / 387.3 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.4393, allocations: 1.375 kB / 387.3 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002062/0.4395, allocations: 27.08 kB / 387.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.4397, allocations: 25.17 kB / 387.4 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.4397, allocations: 7.094 kB / 387.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009105/0.4407, allocations: 1.301 MB / 388.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.468e-06/0.4407, allocations: 0 / 388.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.4411, allocations: 192.9 kB / 388.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.079e-05/0.4412, allocations: 103.4 kB / 389 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.4413, allocations: 7.125 kB / 389 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.4416, allocations: 26.19 kB / 389 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.4417, allocations: 21.56 kB / 389 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.4417, allocations: 6.328 kB / 389 MB, free: 15.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000317/0.4421, allocations: 224.3 kB / 389.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4421, allocations: 0 / 389.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004788/0.4426, allocations: 66.78 kB / 389.3 MB, free: 15.43 MB / 314.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.00049/0.4431, allocations: 115.8 kB / 389.4 MB, free: 31.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006389/0.4437, allocations: 299.4 kB / 389.7 MB, free: 31.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.08e-06/0.4438, allocations: 0 / 389.7 MB, free: 31.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.4441, allocations: 160.1 kB / 389.9 MB, free: 31.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4444, allocations: 43.03 kB / 389.9 MB, free: 31.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007262/0.4452, allocations: 300.7 kB / 390.2 MB, free: 30.87 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.4456, allocations: 0.7604 MB / 391 MB, free: 30.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.4457, allocations: 22.47 kB / 391 MB, free: 30.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.677e-06/0.4458, allocations: 0 / 391 MB, free: 30.16 MB / 330.7 MB Notification: Performance of Templates: time 0.007137/0.4529, allocations: 4.281 MB / 395.3 MB, free: 29.91 MB / 330.7 MB