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 1.985/1.985, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.17e-05, allocations: 0 / 284.3 MB, free: 8.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08709/0.08715, allocations: 50.37 MB / 334.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4513, allocations: 81.89 MB / 416.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.4515, allocations: 64.09 kB / 416.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03018/0.4818, allocations: 7.229 MB / 423.9 MB, free: 6.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.951e-06/0.4818, allocations: 4 kB / 423.9 MB, free: 6.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.085e-05/0.4818, allocations: 7.938 kB / 423.9 MB, free: 6.203 MB / 346.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.001019/0.4829, allocations: 0.5698 MB / 424.4 MB, free: 5.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.4829, allocations: 12.02 kB / 424.4 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.483, allocations: 44.12 kB / 424.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.4838, allocations: 347.5 kB / 424.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.4839, allocations: 21.81 kB / 424.9 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.4839, allocations: 25.94 kB / 424.9 MB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.4853, allocations: 0.6665 MB / 425.5 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.4853, allocations: 0 / 425.5 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.4854, allocations: 15.75 kB / 425.6 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.4854, allocations: 4 kB / 425.6 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.4858, allocations: 159.8 kB / 425.7 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.487, allocations: 0.7721 MB / 426.5 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.488, allocations: 0.5341 MB / 427 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004436/0.4885, allocations: 219.8 kB / 427.2 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007685/0.4893, allocations: 0.5818 MB / 427.8 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.4893, allocations: 54.14 kB / 427.9 MB, free: 2.332 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.425e-06/0.4893, allocations: 0 / 427.9 MB, free: 2.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008449/0.4902, allocations: 322 kB / 428.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.4904, allocations: 189 kB / 428.4 MB, free: 1.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.4907, allocations: 214.2 kB / 428.6 MB, free: 1.688 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.4908, allocations: 32.89 kB / 428.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.4909, allocations: 207.7 kB / 428.8 MB, free: 1.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.823e-05/0.491, allocations: 51.2 kB / 428.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/0.491, allocations: 10.81 kB / 428.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4912, allocations: 329 kB / 429.2 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.4914, allocations: 69.34 kB / 429.3 MB, free: 1.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000453/0.4919, allocations: 410.2 kB / 429.7 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.4922, allocations: 140.4 kB / 429.8 MB, free: 440 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.715e-06/0.4922, allocations: 4 kB / 429.8 MB, free: 436 kB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008917/0.4931, allocations: 425.7 kB / 430.2 MB, free: 68 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.4931, allocations: 12 kB / 430.2 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4932, allocations: 12 kB / 430.2 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.733e-05/0.4932, allocations: 16 kB / 430.3 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/0.4937, allocations: 118.4 kB / 430.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-05/0.4938, allocations: 23.92 kB / 430.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003756/0.4942, allocations: 57.89 kB / 430.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.4943, allocations: 31.47 kB / 430.5 MB, free: 15.82 MB / 362.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.0001828/0.4944, allocations: 157.7 kB / 430.6 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006828/0.4951, allocations: 298.1 kB / 430.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007156/0.4959, allocations: 311.8 kB / 431.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.4959, allocations: 4 kB / 431.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.384e-06/0.4959, allocations: 0 / 431.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.4959, allocations: 7.984 kB / 431.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000524/0.4965, allocations: 336.1 kB / 431.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.4965, allocations: 7.953 kB / 431.6 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.4971, allocations: 103.4 kB / 431.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.4971, allocations: 4 kB / 431.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.47e-05/0.4972, allocations: 14.67 kB / 431.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.588e-06/0.4972, allocations: 3.938 kB / 431.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.832e-06/0.4972, allocations: 4 kB / 431.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.4984, allocations: 0.6995 MB / 432.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.4986, allocations: 119.8 kB / 432.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/0.4986, allocations: 10.69 kB / 432.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.499, allocations: 30.86 kB / 432.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.4991, allocations: 7.984 kB / 432.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/0.4991, allocations: 11.06 kB / 432.6 MB, free: 14 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002405/0.4994, allocations: 179.3 kB / 432.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.4994, allocations: 3.938 kB / 432.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000768/0.5002, allocations: 87.7 kB / 432.9 MB, free: 13.77 MB / 362.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.0002394/0.5004, allocations: 126.3 kB / 433 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006754/0.5011, allocations: 291.8 kB / 433.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.101e-06/0.5011, allocations: 5.188 kB / 433.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.186e-05/0.5012, allocations: 11.25 kB / 433.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.5022, allocations: 264.1 kB / 433.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.5039, allocations: 0.6043 MB / 434.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/0.5045, allocations: 0.8196 MB / 435 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.5046, allocations: 31.44 kB / 435 MB, free: 11.77 MB / 362.7 MB Notification: Performance of SimCode: time 1.687e-06/0.5046, allocations: 3.938 kB / 435 MB, free: 11.76 MB / 362.7 MB Notification: Performance of Templates: time 0.008885/0.5135, allocations: 4.236 MB / 439.2 MB, free: 7.574 MB / 362.7 MB