Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.231/2.231, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.648e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 50.37 MB / 334.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4352/0.545, allocations: 81.91 MB / 416.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.5453, allocations: 64.72 kB / 416.7 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03413/0.5794, allocations: 7.229 MB / 424 MB, free: 5.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5795, allocations: 4 kB / 424 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.362e-05/0.5795, allocations: 12 kB / 424 MB, free: 5.844 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.001318/0.5809, allocations: 0.577 MB / 424.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.5809, allocations: 8.031 kB / 424.6 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.5811, allocations: 67.16 kB / 424.6 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.5812, allocations: 40.22 kB / 424.7 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008772/0.5821, allocations: 352.4 kB / 425 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.5821, allocations: 31.06 kB / 425 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.075e-05/0.5822, allocations: 30.66 kB / 425.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.5838, allocations: 0.6577 MB / 425.7 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.5838, allocations: 0 / 425.7 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.5839, allocations: 15.12 kB / 425.7 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.5839, allocations: 8 kB / 425.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004672/0.5844, allocations: 147.1 kB / 425.9 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.5857, allocations: 0.7632 MB / 426.7 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.5869, allocations: 0.5381 MB / 427.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.5875, allocations: 225.6 kB / 427.4 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008768/0.5883, allocations: 0.5892 MB / 428 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.5884, allocations: 49.52 kB / 428.1 MB, free: 1.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.938e-06/0.5884, allocations: 0 / 428.1 MB, free: 1.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.000938/0.5894, allocations: 323.9 kB / 428.4 MB, free: 1.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/0.5895, allocations: 184.7 kB / 428.6 MB, free: 1.453 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003483/0.5899, allocations: 225.8 kB / 428.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.59, allocations: 31.52 kB / 428.8 MB, free: 1.227 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.5901, allocations: 200.8 kB / 429 MB, free: 1.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.699e-05/0.5902, allocations: 50.19 kB / 429.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.996e-05/0.5902, allocations: 15.06 kB / 429.1 MB, free: 1.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5904, allocations: 330 kB / 429.4 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.5906, allocations: 70.48 kB / 429.5 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.591, allocations: 409 kB / 429.9 MB, free: 112 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.5913, allocations: 137.4 kB / 430 MB, free: 4 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.5914, allocations: 4 kB / 430 MB, free: 0 / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001034/0.5924, allocations: 417.9 kB / 430.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.5925, allocations: 12 kB / 430.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/0.5925, allocations: 12 kB / 430.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-05/0.5925, allocations: 16 kB / 430.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000687/0.5932, allocations: 119.4 kB / 430.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.404e-05/0.5933, allocations: 23.92 kB / 430.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.5937, allocations: 62.14 kB / 430.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/0.5938, allocations: 31.25 kB / 430.7 MB, free: 15.39 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.000216/0.594, allocations: 154.6 kB / 430.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000733/0.5948, allocations: 299 kB / 431.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007976/0.5956, allocations: 319.2 kB / 431.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.5956, allocations: 4 kB / 431.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.5956, allocations: 4 kB / 431.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.5956, allocations: 7.984 kB / 431.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005745/0.5962, allocations: 328.3 kB / 431.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.5963, allocations: 0 / 431.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008157/0.5971, allocations: 107.3 kB / 431.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/0.5971, allocations: 4 kB / 431.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.948e-05/0.5972, allocations: 13.67 kB / 431.9 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.5972, allocations: 7.938 kB / 431.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5972, allocations: 0 / 431.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.5985, allocations: 0.695 MB / 432.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.5987, allocations: 123.8 kB / 432.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.984e-05/0.5988, allocations: 15.81 kB / 432.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.5992, allocations: 30.61 kB / 432.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.5993, allocations: 15.91 kB / 432.8 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.5994, allocations: 19.77 kB / 432.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000252/0.5996, allocations: 169.7 kB / 433 MB, free: 13.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5996, allocations: 0 / 433 MB, free: 13.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007891/0.6004, allocations: 81.73 kB / 433 MB, free: 13.35 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.0018/0.6023, allocations: 1.49 MB / 434.5 MB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007908/0.6031, allocations: 284.8 kB / 434.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6031, allocations: 1.188 kB / 434.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.433e-05/0.6032, allocations: 19.38 kB / 434.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.6045, allocations: 254 kB / 435.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.6072, allocations: 0.6933 MB / 435.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.6078, allocations: 0.8195 MB / 436.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.608, allocations: 107.1 kB / 436.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6081, allocations: 0 / 436.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.538/3.146, allocations: 5.661 MB / 442.4 MB, free: 4.43 MB / 362.7 MB