Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") Notification: Performance of loadModel(Modelica_Synchronous): time 2.272/2.272, allocations: 218.4 MB / 234.2 MB, free: 5.574 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.858e-05/3.854e-05, allocations: 8 kB / 287.6 MB, free: 52 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3966, allocations: 50.37 MB / 338 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.005369/0.4021, allocations: 1.875 MB / 339.8 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.4053, allocations: 0.7532 MB / 340.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004741/0.4059, allocations: 15.94 kB / 340.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.406, allocations: 23.72 kB / 340.6 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004584/0.4065, allocations: 47.8 kB / 340.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.4081, allocations: 191.6 kB / 340.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000732/0.4089, allocations: 151.6 kB / 341 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.4093, allocations: 78.44 kB / 341.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.4096, allocations: 71.69 kB / 341.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.4099, allocations: 71.69 kB / 341.2 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002318/0.4101, allocations: 43.89 kB / 341.3 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.952e-05/0.4102, allocations: 8 kB / 341.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.4104, allocations: 35.84 kB / 341.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.93e-05/0.4105, allocations: 12 kB / 341.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005909/0.4111, allocations: 227.5 kB / 341.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4112, allocations: 0 / 341.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4112, allocations: 0 / 341.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.4112, allocations: 0 / 341.5 MB, free: 12.36 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001562/0.4128, allocations: 0.497 MB / 342 MB, free: 11.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.4129, allocations: 8.031 kB / 342.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.4131, allocations: 35.53 kB / 342.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008353/0.414, allocations: 293.9 kB / 342.4 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-05/0.4141, allocations: 24.38 kB / 342.4 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.131e-05/0.4142, allocations: 16 kB / 342.4 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003145/0.4173, allocations: 0.6683 MB / 343.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.4174, allocations: 4 kB / 343.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.016e-05/0.4175, allocations: 4 kB / 343.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.4175, allocations: 7.938 kB / 343.1 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.4189, allocations: 180.2 kB / 343.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.4203, allocations: 0.5298 MB / 343.8 MB, free: 9.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.423, allocations: 0.5836 MB / 344.4 MB, free: 9.262 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001457/0.4246, allocations: 0.5895 MB / 345 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.383e-05/0.4247, allocations: 46.48 kB / 345 MB, free: 8.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 6.051e-06/0.4247, allocations: 0 / 345 MB, free: 8.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.003102/0.4278, allocations: 0.5482 MB / 345.6 MB, free: 7.918 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002513/0.4282, allocations: 216 kB / 345.8 MB, free: 7.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.4287, allocations: 208.2 kB / 346 MB, free: 7.453 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.919e-05/0.4288, allocations: 33.95 kB / 346 MB, free: 7.414 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.429, allocations: 191.4 kB / 346.2 MB, free: 7.227 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.4292, allocations: 27.88 kB / 346.2 MB, free: 7.199 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.4292, allocations: 8 kB / 346.2 MB, free: 7.191 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.4294, allocations: 322.8 kB / 346.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.4298, allocations: 68.77 kB / 346.6 MB, free: 6.801 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.4305, allocations: 348 kB / 347 MB, free: 6.324 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.4311, allocations: 123.9 kB / 347.1 MB, free: 6.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.4311, allocations: 4 kB / 347.1 MB, free: 6.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001685/0.4328, allocations: 381.3 kB / 347.5 MB, free: 5.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.4329, allocations: 11.95 kB / 347.5 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/0.433, allocations: 12 kB / 347.5 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.786e-05/0.4331, allocations: 12 kB / 347.5 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000804/0.4339, allocations: 87.83 kB / 347.6 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.05e-05/0.434, allocations: 19.94 kB / 347.6 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006428/0.4346, allocations: 44.2 kB / 347.6 MB, free: 5.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-05/0.4347, allocations: 24 kB / 347.7 MB, free: 5.613 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004304/0.4352, allocations: 180.5 kB / 347.8 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/0.437, allocations: 317.1 kB / 348.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.4387, allocations: 337.3 kB / 348.5 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.509e-05/0.4388, allocations: 8 kB / 348.5 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.4388, allocations: 0 / 348.5 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.4389, allocations: 7.984 kB / 348.5 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008369/0.4397, allocations: 301.2 kB / 348.8 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/0.4398, allocations: 0 / 348.8 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/0.4408, allocations: 95.81 kB / 348.9 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/0.4409, allocations: 3.938 kB / 348.9 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-05/0.4409, allocations: 12 kB / 348.9 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.81e-05/0.441, allocations: 7.953 kB / 348.9 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.441, allocations: 0 / 348.9 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.4431, allocations: 0.5675 MB / 349.5 MB, free: 3.695 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.4433, allocations: 112.7 kB / 349.6 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.4435, allocations: 12 kB / 349.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006313/0.4441, allocations: 27.97 kB / 349.6 MB, free: 3.527 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.4442, allocations: 7.938 kB / 349.6 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.4443, allocations: 16 kB / 349.6 MB, free: 3.504 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004054/0.4447, allocations: 168.5 kB / 349.8 MB, free: 3.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.4448, allocations: 0 / 349.8 MB, free: 3.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001147/0.4459, allocations: 52 kB / 349.9 MB, free: 3.289 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000421/0.4464, allocations: 123.2 kB / 350 MB, free: 3.156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.4481, allocations: 298.7 kB / 350.3 MB, free: 2.867 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.4481, allocations: 4 kB / 350.3 MB, free: 2.863 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.4483, allocations: 15.92 kB / 350.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.4504, allocations: 278.2 kB / 350.6 MB, free: 2.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/0.4534, allocations: 0.6444 MB / 351.2 MB, free: 1.887 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.4542, allocations: 0.792 MB / 352 MB, free: 1.066 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.4544, allocations: 31.42 kB / 352 MB, free: 1.035 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4544, allocations: 0 / 352 MB, free: 1.035 MB / 282.7 MB Notification: Performance of Templates: time 0.01579/0.4702, allocations: 3.614 MB / 355.6 MB, free: 13.43 MB / 298.7 MB