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.937/1.937, allocations: 195 MB / 203.2 MB, free: 6.758 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.774e-05/3.8e-05, allocations: 9.047 kB / 249.6 MB, free: 5.566 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08/0.08007, allocations: 44.51 MB / 294.1 MB, free: 11.15 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3289/0.409, allocations: 74.63 MB / 368.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.4093, allocations: 83.56 kB / 368.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02048/0.4298, allocations: 5.494 MB / 374.3 MB, free: 26.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.278e-06/0.4299, allocations: 0 / 374.3 MB, free: 26.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.4299, allocations: 3.875 kB / 374.3 MB, free: 26.46 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.0009267/0.4308, allocations: 0.5753 MB / 374.9 MB, free: 26.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4309, allocations: 7.781 kB / 374.9 MB, free: 26.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.431, allocations: 31.12 kB / 375 MB, free: 25.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.4314, allocations: 288.2 kB / 375.2 MB, free: 25.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.4314, allocations: 15.62 kB / 375.3 MB, free: 25.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.4315, allocations: 15.56 kB / 375.3 MB, free: 25.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004294/0.4319, allocations: 152.6 kB / 375.4 MB, free: 25.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.4324, allocations: 194.2 kB / 375.6 MB, free: 25.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4324, allocations: 0 / 375.6 MB, free: 25.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.4324, allocations: 3.125 kB / 375.6 MB, free: 25.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.46e-06/0.4325, allocations: 11.73 kB / 375.6 MB, free: 25.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.4343, allocations: 1.024 MB / 376.6 MB, free: 25.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.4346, allocations: 92.94 kB / 376.7 MB, free: 25.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.4347, allocations: 43.11 kB / 376.8 MB, free: 25.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.4348, allocations: 0 / 376.8 MB, free: 25.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.435, allocations: 117 kB / 376.9 MB, free: 25.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.49e-06/0.435, allocations: 0 / 376.9 MB, free: 25.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004125/0.4355, allocations: 130.9 kB / 377 MB, free: 25.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.4355, allocations: 84.98 kB / 377.1 MB, free: 24.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.4358, allocations: 237.5 kB / 377.3 MB, free: 24.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.4358, allocations: 33.7 kB / 377.4 MB, free: 24.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.436, allocations: 261.2 kB / 377.6 MB, free: 24.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.4361, allocations: 35.95 kB / 377.7 MB, free: 24.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.523e-05/0.4361, allocations: 0 / 377.7 MB, free: 24.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4362, allocations: 320.7 kB / 378 MB, free: 24.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.4364, allocations: 48.81 kB / 378 MB, free: 24.26 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.4366, allocations: 147.6 kB / 378.2 MB, free: 24.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.4367, allocations: 61.77 kB / 378.2 MB, free: 24.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.695e-06/0.4368, allocations: 3.875 kB / 378.2 MB, free: 24.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005759/0.4373, allocations: 224.6 kB / 378.4 MB, free: 24.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.458e-05/0.4374, allocations: 41.41 kB / 378.5 MB, free: 24.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.722e-06/0.4374, allocations: 3.875 kB / 378.5 MB, free: 24.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.4376, allocations: 32.73 kB / 378.5 MB, free: 24.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.438, allocations: 60.95 kB / 378.6 MB, free: 24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.4393, allocations: 1.258 MB / 379.8 MB, free: 22.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.4398, allocations: 41.34 kB / 379.9 MB, free: 22.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.4399, allocations: 18.09 kB / 379.9 MB, free: 22.78 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 0.00014/0.44, allocations: 120.4 kB / 380 MB, free: 22.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.4401, allocations: 23.19 kB / 380 MB, free: 22.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.354e-05/0.4402, allocations: 31.36 kB / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.524e-06/0.4402, allocations: 0 / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-06/0.4402, allocations: 0 / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4402, allocations: 3.844 kB / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005273/0.4407, allocations: 390.5 kB / 380.5 MB, free: 22.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.58e-06/0.4408, allocations: 7.906 kB / 380.5 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.441, allocations: 32.23 kB / 380.5 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001447/0.4411, allocations: 27.28 kB / 380.5 MB, free: 22.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.4412, allocations: 6.391 kB / 380.5 MB, free: 22.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.4424, allocations: 1.24 MB / 381.8 MB, free: 21.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.056e-06/0.4424, allocations: 3.875 kB / 381.8 MB, free: 21.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.4428, allocations: 179.8 kB / 381.9 MB, free: 21.03 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.4429, allocations: 102.6 kB / 382 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.668e-05/0.443, allocations: 2.766 kB / 382 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002763/0.4432, allocations: 24.67 kB / 382.1 MB, free: 20.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.906e-05/0.4434, allocations: 22.31 kB / 382.1 MB, free: 20.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.4434, allocations: 7.375 kB / 382.1 MB, free: 20.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000238/0.4436, allocations: 177.9 kB / 382.3 MB, free: 20.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.94e-07/0.4436, allocations: 3.812 kB / 382.3 MB, free: 20.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005081/0.4442, allocations: 65.97 kB / 382.3 MB, free: 20.82 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.0001639/0.4443, allocations: 111 kB / 382.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005788/0.4449, allocations: 292.1 kB / 382.7 MB, free: 20.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.445, allocations: 0 / 382.7 MB, free: 20.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002715/0.4452, allocations: 153.6 kB / 382.9 MB, free: 20.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.4456, allocations: 40.36 kB / 382.9 MB, free: 20.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000681/0.4463, allocations: 305.1 kB / 383.2 MB, free: 20.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.4467, allocations: 0.7631 MB / 384 MB, free: 19.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.169e-05/0.4468, allocations: 25.28 kB / 384 MB, free: 19.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.429e-06/0.4468, allocations: 0 / 384 MB, free: 19.55 MB / 314.7 MB Notification: Performance of Templates: time 0.006672/0.4535, allocations: 4.114 MB / 388.1 MB, free: 18.13 MB / 314.7 MB