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 2.122/2.122, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.221e-05, allocations: 4 kB / 258.8 MB, free: 8.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3116, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005643/0.3174, allocations: 2.286 MB / 305.6 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.3198, allocations: 0.5883 MB / 306.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004344/0.3203, allocations: 15.97 kB / 306.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.3205, allocations: 36.08 kB / 306.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005407/0.3211, allocations: 94.83 kB / 306.3 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.3215, allocations: 59.16 kB / 306.4 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007014/0.3222, allocations: 180.2 kB / 306.6 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.3226, allocations: 69.5 kB / 306.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.3229, allocations: 102.4 kB / 306.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003929/0.3233, allocations: 130.7 kB / 306.8 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.3234, allocations: 14.81 kB / 306.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.619e-05/0.3235, allocations: 14.22 kB / 306.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.3236, allocations: 55.12 kB / 306.9 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.3238, allocations: 24.75 kB / 307 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006462/0.3245, allocations: 285.4 kB / 307.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3245, allocations: 0 / 307.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.389e-06/0.3245, allocations: 1.031 kB / 307.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.3246, allocations: 0 / 307.2 MB, free: 9.688 MB / 250.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.002294/0.3269, allocations: 0.5813 MB / 307.8 MB, free: 9.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.596e-05/0.327, allocations: 12.03 kB / 307.8 MB, free: 9.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.3272, allocations: 35.56 kB / 307.9 MB, free: 9.074 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000746/0.328, allocations: 274.4 kB / 308.1 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.328, allocations: 24.56 kB / 308.2 MB, free: 8.742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.3282, allocations: 24 kB / 308.2 MB, free: 8.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3296, allocations: 264.8 kB / 308.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3297, allocations: 0 / 308.4 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.3298, allocations: 16 kB / 308.5 MB, free: 8.438 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.3298, allocations: 4 kB / 308.5 MB, free: 8.434 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.3316, allocations: 262 kB / 308.7 MB, free: 8.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003895/0.3355, allocations: 1.048 MB / 309.8 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.337, allocations: 182.5 kB / 309.9 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.3371, allocations: 8 kB / 309.9 MB, free: 6.852 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008486/0.338, allocations: 153.2 kB / 310.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 4.358e-06/0.338, allocations: 0 / 310.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.002589/0.3406, allocations: 403 kB / 310.5 MB, free: 6.262 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.554e-05/0.3407, allocations: 77.11 kB / 310.6 MB, free: 6.168 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007107/0.3414, allocations: 283.7 kB / 310.8 MB, free: 5.883 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.3415, allocations: 33.7 kB / 310.9 MB, free: 5.844 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.3418, allocations: 261.9 kB / 311.1 MB, free: 5.586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.3419, allocations: 27.61 kB / 311.2 MB, free: 5.559 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.342, allocations: 4 kB / 311.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3422, allocations: 322.8 kB / 311.5 MB, free: 5.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007366/0.343, allocations: 92.41 kB / 311.6 MB, free: 5.141 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008411/0.3438, allocations: 202.5 kB / 311.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007731/0.3446, allocations: 145.6 kB / 311.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3446, allocations: 0 / 311.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002039/0.3467, allocations: 375.9 kB / 312.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.3468, allocations: 33.7 kB / 312.3 MB, free: 4.324 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.3468, allocations: 4 kB / 312.3 MB, free: 4.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.3472, allocations: 32.97 kB / 312.3 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.3478, allocations: 59.89 kB / 312.4 MB, free: 4.227 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.3497, allocations: 1.312 MB / 313.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009433/0.3507, allocations: 51.66 kB / 313.8 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.349e-05/0.3508, allocations: 8 kB / 313.8 MB, free: 2.723 MB / 250.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.0003018/0.3511, allocations: 146 kB / 313.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.3512, allocations: 27.67 kB / 313.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.831e-05/0.3513, allocations: 33.83 kB / 314 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3513, allocations: 0 / 314 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.3514, allocations: 0 / 314 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3514, allocations: 0 / 314 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008695/0.3522, allocations: 463 kB / 314.4 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3523, allocations: 4.031 kB / 314.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.3526, allocations: 23.98 kB / 314.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002235/0.3528, allocations: 28.83 kB / 314.5 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.3529, allocations: 0 / 314.5 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/0.3548, allocations: 1.307 MB / 315.8 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3549, allocations: 0 / 315.8 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.3565, allocations: 276.7 kB / 316.1 MB, free: 200 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.3567, allocations: 100.8 kB / 316.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3569, allocations: 8 kB / 316.2 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.3575, allocations: 27.97 kB / 316.2 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3576, allocations: 23.86 kB / 316.2 MB, free: 20 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.3577, allocations: 4 kB / 316.2 MB, free: 16 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0006279/0.3583, allocations: 227.1 kB / 316.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3584, allocations: 0 / 316.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009352/0.3593, allocations: 67.84 kB / 316.5 MB, free: 15.73 MB / 266.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.0002738/0.3596, allocations: 104.7 kB / 316.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.3622, allocations: 402 kB / 317 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.3623, allocations: 0 / 317 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.3635, allocations: 211.3 kB / 317.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006761/0.3643, allocations: 36.95 kB / 317.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.3666, allocations: 0.5555 MB / 317.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.3673, allocations: 0.7601 MB / 318.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.3676, allocations: 27.44 kB / 318.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of SimCode: time 1.874e-06/0.3676, allocations: 0 / 318.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of Templates: time 0.014/0.3816, allocations: 4.305 MB / 322.9 MB, free: 9.238 MB / 266.7 MB