Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.271/2.271, allocations: 218.4 MB / 234.2 MB, free: 4.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.857e-05, allocations: 4 kB / 287.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.343, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.004028/0.3471, allocations: 2.235 MB / 340.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.3496, allocations: 0.831 MB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003142/0.35, allocations: 19.94 kB / 341.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.942e-05/0.3501, allocations: 23.72 kB / 341.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003753/0.3505, allocations: 67.75 kB / 341.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009456/0.3514, allocations: 203.5 kB / 341.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.3519, allocations: 199.4 kB / 341.5 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.3522, allocations: 98.89 kB / 341.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.3524, allocations: 71.78 kB / 341.7 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.3526, allocations: 99.52 kB / 341.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.3528, allocations: 39.97 kB / 341.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/0.3528, allocations: 12 kB / 341.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.79e-05/0.3529, allocations: 47.77 kB / 341.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.617e-05/0.353, allocations: 16 kB / 341.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004685/0.3535, allocations: 277.2 kB / 342.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3535, allocations: 3.938 kB / 342.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.541e-06/0.3535, allocations: 3.984 kB / 342.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.3536, allocations: 0 / 342.2 MB, free: 11.6 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001315/0.3549, allocations: 0.5531 MB / 342.7 MB, free: 11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.355, allocations: 12.02 kB / 342.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.3551, allocations: 47.42 kB / 342.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005979/0.3558, allocations: 306.8 kB / 343.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.136e-05/0.3558, allocations: 24.56 kB / 343.1 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-05/0.3559, allocations: 24 kB / 343.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/0.3582, allocations: 0.7752 MB / 343.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.546e-05/0.3583, allocations: 8 kB / 343.9 MB, free: 9.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.075e-05/0.3583, allocations: 8 kB / 343.9 MB, free: 9.738 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.3584, allocations: 8 kB / 344 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.3594, allocations: 247.7 kB / 344.2 MB, free: 9.488 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.3608, allocations: 0.7721 MB / 345 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.3628, allocations: 0.6623 MB / 345.6 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009608/0.3638, allocations: 0.5939 MB / 346.2 MB, free: 7.184 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.3639, allocations: 42.34 kB / 346.3 MB, free: 7.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=52): time 5.2e-06/0.3639, allocations: 0 / 346.3 MB, free: 7.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.002298/0.3662, allocations: 0.643 MB / 346.9 MB, free: 6.465 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001865/0.3665, allocations: 223.9 kB / 347.1 MB, free: 6.203 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003787/0.3669, allocations: 217.8 kB / 347.3 MB, free: 5.984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.3669, allocations: 37.7 kB / 347.4 MB, free: 5.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.3671, allocations: 203.2 kB / 347.6 MB, free: 5.742 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/0.3672, allocations: 51.53 kB / 347.6 MB, free: 5.691 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.3672, allocations: 8 kB / 347.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3674, allocations: 338.8 kB / 348 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.3677, allocations: 89.06 kB / 348 MB, free: 5.258 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006016/0.3683, allocations: 435 kB / 348.5 MB, free: 4.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/0.3688, allocations: 163.8 kB / 348.6 MB, free: 4.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.3688, allocations: 4 kB / 348.6 MB, free: 4.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001276/0.3701, allocations: 485.7 kB / 349.1 MB, free: 4.023 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.3702, allocations: 12 kB / 349.1 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.3702, allocations: 16.12 kB / 349.1 MB, free: 3.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.727e-05/0.3703, allocations: 16 kB / 349.2 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.3709, allocations: 119.8 kB / 349.3 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.439e-05/0.3709, allocations: 23.88 kB / 349.3 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.3714, allocations: 55.58 kB / 349.3 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-05/0.3715, allocations: 32 kB / 349.4 MB, free: 3.754 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (61): * Single equations (assignments): 61 * 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.0003334/0.3718, allocations: 193.3 kB / 349.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/0.3729, allocations: 354 kB / 349.9 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.3742, allocations: 376.6 kB / 350.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3742, allocations: 8 kB / 350.3 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.3742, allocations: 4.469 kB / 350.3 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.3742, allocations: 3.984 kB / 350.3 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005997/0.3748, allocations: 337.1 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.3749, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007878/0.3757, allocations: 103.9 kB / 350.7 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/0.3757, allocations: 4 kB / 350.7 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.3757, allocations: 8 kB / 350.7 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.3758, allocations: 4 kB / 350.7 MB, free: 2.309 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.3758, allocations: 7.984 kB / 350.8 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.3781, allocations: 0.8461 MB / 351.6 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.3783, allocations: 116.8 kB / 351.7 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.143e-05/0.3784, allocations: 12 kB / 351.7 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.3788, allocations: 31.98 kB / 351.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.3789, allocations: 11.94 kB / 351.8 MB, free: 1.223 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.379, allocations: 12 kB / 351.8 MB, free: 1.211 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00028/0.3793, allocations: 182 kB / 352 MB, free: 1.035 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3793, allocations: 4 kB / 352 MB, free: 1.031 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007421/0.38, allocations: 83.84 kB / 352 MB, free: 0.9492 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * 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 (49): * Single equations (assignments): 48 * 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.0002627/0.3803, allocations: 131 kB / 352.2 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3816, allocations: 369.4 kB / 352.5 MB, free: 464 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3817, allocations: 0 / 352.5 MB, free: 464 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.3819, allocations: 35.97 kB / 352.6 MB, free: 428 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.3833, allocations: 303.1 kB / 352.9 MB, free: 116 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.3859, allocations: 0.9086 MB / 353.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.3865, allocations: 0.8239 MB / 354.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3866, allocations: 35.42 kB / 354.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3867, allocations: 0 / 354.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of Templates: time 0.01329/0.3999, allocations: 4.323 MB / 359 MB, free: 9.953 MB / 298.7 MB