Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,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.SchmittTrigger") Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.812e-05/3.842e-05, allocations: 8.375 kB / 255.4 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07933/0.07939, allocations: 44.49 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.4237, allocations: 74.35 MB / 374.2 MB, free: 22.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.424, allocations: 76.66 kB / 374.3 MB, free: 22.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02061/0.4447, allocations: 5.135 MB / 379.4 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.001e-06/0.4447, allocations: 0 / 379.4 MB, free: 21.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.4448, allocations: 5.062 kB / 379.4 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.000863/0.4456, allocations: 0.5333 MB / 379.9 MB, free: 21.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4457, allocations: 9.672 kB / 380 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.256e-05/0.4458, allocations: 30.66 kB / 380 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.4461, allocations: 259.3 kB / 380.2 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.4462, allocations: 16.53 kB / 380.2 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.4462, allocations: 19.78 kB / 380.3 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.4467, allocations: 188.2 kB / 380.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.4467, allocations: 1.031 kB / 380.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.4468, allocations: 13.12 kB / 380.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.092e-06/0.4468, allocations: 8.656 kB / 380.5 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.4472, allocations: 142.9 kB / 380.6 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.449, allocations: 0.8831 MB / 381.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.4494, allocations: 137.4 kB / 381.6 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.4496, allocations: 59.88 kB / 381.7 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.4496, allocations: 1.031 kB / 381.7 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.4499, allocations: 133.2 kB / 381.8 MB, free: 20.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.38e-06/0.4499, allocations: 4 kB / 381.8 MB, free: 20.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007641/0.4507, allocations: 212.6 kB / 382 MB, free: 20.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.4507, allocations: 108.7 kB / 382.1 MB, free: 20.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.451, allocations: 236.2 kB / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.4511, allocations: 27.23 kB / 382.4 MB, free: 20.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.268e-05/0.4512, allocations: 226.4 kB / 382.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.4512, allocations: 43.48 kB / 382.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.4513, allocations: 5.312 kB / 382.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.458e-05/0.4513, allocations: 323.3 kB / 383 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.4515, allocations: 59.73 kB / 383 MB, free: 19.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.4517, allocations: 116.1 kB / 383.2 MB, free: 19.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.4519, allocations: 84.69 kB / 383.2 MB, free: 19.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.952e-06/0.4519, allocations: 1.562 kB / 383.2 MB, free: 19.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008296/0.4527, allocations: 302.4 kB / 383.5 MB, free: 19.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/0.4528, allocations: 36.34 kB / 383.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.173e-06/0.4528, allocations: 5.516 kB / 383.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005347/0.4534, allocations: 96.84 kB / 383.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.4536, allocations: 44.66 kB / 383.7 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.4555, allocations: 1.602 MB / 385.3 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.4559, allocations: 54.03 kB / 385.4 MB, free: 18.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.4559, allocations: 5.906 kB / 385.4 MB, free: 18.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.456, allocations: 123 kB / 385.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.4561, allocations: 21.75 kB / 385.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.4562, allocations: 25.48 kB / 385.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.64e-06/0.4562, allocations: 1.125 kB / 385.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.568e-06/0.4562, allocations: 5.156 kB / 385.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.288e-06/0.4562, allocations: 2.297 kB / 385.5 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002961/0.4565, allocations: 287 kB / 385.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.245e-06/0.4565, allocations: 1.062 kB / 385.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.4567, allocations: 26.5 kB / 385.9 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004858/0.4572, allocations: 95.91 kB / 385.9 MB, free: 17.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.4573, allocations: 1.031 kB / 385.9 MB, free: 17.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.4587, allocations: 1.492 MB / 387.4 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.669e-06/0.4588, allocations: 0 / 387.4 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006908/0.4595, allocations: 244.8 kB / 387.7 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.338e-05/0.4596, allocations: 101.7 kB / 387.8 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.4596, allocations: 6 kB / 387.8 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.4599, allocations: 31.88 kB / 387.8 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.46, allocations: 24.36 kB / 387.8 MB, free: 16.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.4601, allocations: 8.219 kB / 387.8 MB, free: 16.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002131/0.4603, allocations: 180.6 kB / 388 MB, free: 16.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.4603, allocations: 0 / 388 MB, free: 16.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005173/0.4608, allocations: 74.83 kB / 388.1 MB, free: 16.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.461, allocations: 107.1 kB / 388.2 MB, free: 16.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005697/0.4616, allocations: 315.8 kB / 388.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.4616, allocations: 1.375 kB / 388.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.4619, allocations: 182.7 kB / 388.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.4622, allocations: 37.8 kB / 388.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006457/0.4629, allocations: 285.2 kB / 389 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000636/0.4635, allocations: 0.7527 MB / 389.8 MB, free: 30.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.404e-05/0.4636, allocations: 18.66 kB / 389.8 MB, free: 30.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.604e-06/0.4636, allocations: 0 / 389.8 MB, free: 30.88 MB / 330.7 MB Notification: Performance of Templates: time 0.006747/0.4704, allocations: 3.871 MB / 393.6 MB, free: 30.67 MB / 330.7 MB