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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 2.197/2.197, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.159e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 50.4 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004039/0.1141, allocations: 2.31 MB / 347.3 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.1157, allocations: 0.604 MB / 347.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.116, allocations: 8 kB / 347.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.847e-05/0.1161, allocations: 39.69 kB / 347.9 MB, free: 5.957 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.1164, allocations: 99.69 kB / 348 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.1167, allocations: 67.86 kB / 348.1 MB, free: 5.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.1171, allocations: 199.5 kB / 348.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.1173, allocations: 77.44 kB / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.1175, allocations: 103.7 kB / 348.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.1178, allocations: 127.6 kB / 348.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.1179, allocations: 16 kB / 348.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.104e-05/0.1179, allocations: 15.98 kB / 348.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.613e-05/0.118, allocations: 51.75 kB / 348.7 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.139e-05/0.1181, allocations: 28 kB / 348.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004387/0.1186, allocations: 295.4 kB / 349 MB, free: 4.895 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1186, allocations: 0 / 349 MB, free: 4.895 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1186, allocations: 0 / 349 MB, free: 4.895 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1186, allocations: 4 kB / 349 MB, free: 4.891 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001686/0.1203, allocations: 0.607 MB / 349.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1204, allocations: 8.031 kB / 349.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1205, allocations: 35.62 kB / 349.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/0.121, allocations: 298.3 kB / 349.9 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.121, allocations: 20.56 kB / 350 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.1211, allocations: 28 kB / 350 MB, free: 3.805 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1223, allocations: 327.6 kB / 350.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1223, allocations: 0 / 350.3 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.1224, allocations: 15.95 kB / 350.3 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1224, allocations: 8 kB / 350.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1238, allocations: 298 kB / 350.6 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00296/0.1268, allocations: 1.169 MB / 351.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.1283, allocations: 234.6 kB / 352 MB, free: 1.668 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.1284, allocations: 0 / 352 MB, free: 1.668 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007474/0.1291, allocations: 173.1 kB / 352.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.274e-06/0.1292, allocations: 4 kB / 352.2 MB, free: 1.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.002237/0.1314, allocations: 455 kB / 352.6 MB, free: 1.004 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.1315, allocations: 81.11 kB / 352.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005126/0.132, allocations: 287.7 kB / 353 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.1321, allocations: 33.7 kB / 353 MB, free: 0.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.1323, allocations: 261.9 kB / 353.3 MB, free: 332 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.1323, allocations: 35.62 kB / 353.3 MB, free: 296 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.999e-05/0.1324, allocations: 0 / 353.3 MB, free: 296 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1325, allocations: 326.8 kB / 353.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.1332, allocations: 116.2 kB / 353.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007068/0.1339, allocations: 222.9 kB / 354 MB, free: 15.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006968/0.1346, allocations: 157.6 kB / 354.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.1346, allocations: 8 kB / 354.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001646/0.1363, allocations: 404.3 kB / 354.5 MB, free: 15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.607e-05/0.1364, allocations: 37.7 kB / 354.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.1364, allocations: 7.984 kB / 354.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/0.1367, allocations: 24.84 kB / 354.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005146/0.1372, allocations: 79.98 kB / 354.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.1386, allocations: 1.311 MB / 356 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/0.1393, allocations: 67.55 kB / 356.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.1394, allocations: 16.17 kB / 356.1 MB, free: 13.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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.0002289/0.1396, allocations: 144.5 kB / 356.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.1397, allocations: 27.72 kB / 356.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.866e-05/0.1398, allocations: 34.55 kB / 356.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1398, allocations: 0 / 356.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.1398, allocations: 4 kB / 356.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1398, allocations: 0 / 356.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006532/0.1405, allocations: 455.1 kB / 356.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1405, allocations: 0 / 356.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/0.1408, allocations: 39.91 kB / 356.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/0.141, allocations: 28.83 kB / 356.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1411, allocations: 8.031 kB / 356.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.1424, allocations: 1.311 MB / 358.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1425, allocations: 0 / 358.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.1439, allocations: 304.2 kB / 358.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1441, allocations: 108.8 kB / 358.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.437e-05/0.1442, allocations: 4 kB / 358.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.1446, allocations: 35.95 kB / 358.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.1448, allocations: 23.97 kB / 358.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.1448, allocations: 3.984 kB / 358.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000389/0.1452, allocations: 231.1 kB / 358.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1452, allocations: 0 / 358.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005107/0.1457, allocations: 67.84 kB / 358.9 MB, free: 10.26 MB / 298.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.0001892/0.1459, allocations: 107.9 kB / 359 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.1478, allocations: 438.1 kB / 359.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1479, allocations: 0.7812 kB / 359.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008782/0.1488, allocations: 238.5 kB / 359.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.1493, allocations: 44.27 kB / 359.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.1509, allocations: 0.5751 MB / 360.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.1513, allocations: 0.7599 MB / 361 MB, free: 8.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.1515, allocations: 23.44 kB / 361 MB, free: 7.984 MB / 298.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1515, allocations: 3.938 kB / 361 MB, free: 7.98 MB / 298.7 MB Notification: Performance of Templates: time 0.0107/0.1622, allocations: 4.469 MB / 365.5 MB, free: 3.523 MB / 298.7 MB