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.801/1.801, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.672e-05/2.689e-05, allocations: 0 / 255.3 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07546/0.07551, allocations: 44.5 MB / 299.8 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4034, allocations: 75.3 MB / 375.2 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.4037, allocations: 74.27 kB / 375.2 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02204/0.4258, allocations: 5.55 MB / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.998e-06/0.4258, allocations: 0 / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.4258, allocations: 6.281 kB / 380.8 MB, free: 21.86 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.001015/0.4269, allocations: 0.5759 MB / 381.4 MB, free: 21.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.4269, allocations: 8.406 kB / 381.4 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.427, allocations: 33.73 kB / 381.4 MB, free: 21.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.4274, allocations: 279.4 kB / 381.7 MB, free: 21.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.4275, allocations: 25.98 kB / 381.7 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.4275, allocations: 26.78 kB / 381.7 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.4281, allocations: 230.3 kB / 381.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.4281, allocations: 1.531 kB / 381.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.4282, allocations: 8.219 kB / 382 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.4282, allocations: 5.938 kB / 382 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004313/0.4286, allocations: 180.5 kB / 382.1 MB, free: 21.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.4307, allocations: 1.076 MB / 383.2 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.4311, allocations: 98.53 kB / 383.3 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.4312, allocations: 44.39 kB / 383.4 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.4313, allocations: 3.906 kB / 383.4 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.4315, allocations: 130.3 kB / 383.5 MB, free: 20.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.565e-06/0.4315, allocations: 0 / 383.5 MB, free: 20.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004549/0.432, allocations: 146.1 kB / 383.6 MB, free: 20.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.432, allocations: 82.73 kB / 383.7 MB, free: 20.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.4324, allocations: 285.9 kB / 384 MB, free: 20.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.4325, allocations: 30.77 kB / 384 MB, free: 20.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.4326, allocations: 252.4 kB / 384.3 MB, free: 19.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.771e-05/0.4327, allocations: 36.27 kB / 384.3 MB, free: 19.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/0.4327, allocations: 5.062 kB / 384.3 MB, free: 19.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.284e-05/0.4328, allocations: 319.1 kB / 384.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.4329, allocations: 54.06 kB / 384.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.4331, allocations: 156.3 kB / 384.8 MB, free: 19.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.4333, allocations: 96.3 kB / 384.9 MB, free: 19.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.874e-06/0.4334, allocations: 1.312 kB / 384.9 MB, free: 19.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006682/0.434, allocations: 283.7 kB / 385.2 MB, free: 19.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.4341, allocations: 35.42 kB / 385.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4341, allocations: 3.938 kB / 385.2 MB, free: 19.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.4343, allocations: 34.81 kB / 385.3 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.4347, allocations: 61.73 kB / 385.3 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.4358, allocations: 1.312 MB / 386.6 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.4365, allocations: 55.27 kB / 386.7 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/0.4365, allocations: 10.28 kB / 386.7 MB, free: 18 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.994e-05/0.4366, allocations: 122.4 kB / 386.8 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/0.4367, allocations: 33.78 kB / 386.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.922e-05/0.4368, allocations: 26.92 kB / 386.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.352e-06/0.4368, allocations: 2.656 kB / 386.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.091e-06/0.4368, allocations: 0 / 386.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.326e-06/0.4368, allocations: 3.078 kB / 386.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.4373, allocations: 451.4 kB / 387.3 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-06/0.4374, allocations: 0 / 387.3 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.4376, allocations: 28.17 kB / 387.4 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/0.4378, allocations: 26.02 kB / 387.4 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.4379, allocations: 5.406 kB / 387.4 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.4389, allocations: 1.302 MB / 388.7 MB, free: 16.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.593e-06/0.4389, allocations: 0 / 388.7 MB, free: 16.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003635/0.4393, allocations: 188.5 kB / 388.9 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.318e-05/0.4394, allocations: 103.1 kB / 389 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.4395, allocations: 7.094 kB / 389 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.4398, allocations: 27.17 kB / 389 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.661e-05/0.4399, allocations: 20.91 kB / 389 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.4399, allocations: 12.52 kB / 389 MB, free: 16.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002863/0.4402, allocations: 222.3 kB / 389.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.4402, allocations: 0 / 389.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004884/0.4407, allocations: 66.47 kB / 389.3 MB, free: 15.94 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.0001377/0.4409, allocations: 108.6 kB / 389.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.4415, allocations: 319.7 kB / 389.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4415, allocations: 0.9375 kB / 389.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002842/0.4418, allocations: 179.3 kB / 389.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.4421, allocations: 32.39 kB / 389.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007108/0.4429, allocations: 302 kB / 390.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006963/0.4436, allocations: 0.7586 MB / 391 MB, free: 30.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.4437, allocations: 29.48 kB / 391 MB, free: 30.64 MB / 330.7 MB Notification: Performance of SimCode: time 2.069e-06/0.4437, allocations: 2.031 kB / 391 MB, free: 30.64 MB / 330.7 MB Notification: Performance of Templates: time 0.007347/0.4511, allocations: 4.298 MB / 395.3 MB, free: 30.4 MB / 330.7 MB