Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadModel(ModelicaByExample): time 2.218/2.218, allocations: 203.4 MB / 215.6 MB, free: 12.94 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.039e-05/4.057e-05, allocations: 0 / 264.7 MB, free: 10.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08595, allocations: 46.19 MB / 310.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3419/0.4279, allocations: 72.05 MB / 382.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001258/0.428, allocations: 50.05 kB / 382.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009136/0.4372, allocations: 2.643 MB / 385.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.103e-06/0.4372, allocations: 1.031 kB / 385.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.4373, allocations: 3.375 kB / 385.6 MB, free: 12.23 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005094/0.4378, allocations: 423 kB / 386 MB, free: 11.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.4378, allocations: 10 kB / 386 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.278e-05/0.4379, allocations: 19.86 kB / 386 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.028e-05/0.438, allocations: 178.1 kB / 386.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.4381, allocations: 19.88 kB / 386.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-05/0.4381, allocations: 20.75 kB / 386.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/0.4385, allocations: 166.2 kB / 386.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.4385, allocations: 1.406 kB / 386.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.4386, allocations: 4.875 kB / 386.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.988e-06/0.4386, allocations: 5.562 kB / 386.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002316/0.4388, allocations: 104.7 kB / 386.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.44, allocations: 0.7171 MB / 387.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.4404, allocations: 220 kB / 387.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.4406, allocations: 94.53 kB / 387.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.4407, allocations: 4 kB / 387.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.4408, allocations: 102 kB / 387.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 3.374e-06/0.4409, allocations: 0 / 387.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008715/0.4417, allocations: 472.2 kB / 388.1 MB, free: 10.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.4418, allocations: 51.41 kB / 388.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.507e-05/0.4419, allocations: 124.6 kB / 388.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.4419, allocations: 36.81 kB / 388.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.75e-05/0.442, allocations: 133 kB / 388.4 MB, free: 10.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.4421, allocations: 67.81 kB / 388.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.4421, allocations: 3.375 kB / 388.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.589e-05/0.4421, allocations: 321.9 kB / 388.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.4423, allocations: 45 kB / 388.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.4424, allocations: 102 kB / 389 MB, free: 9.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.4425, allocations: 65.73 kB / 389 MB, free: 9.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.511e-06/0.4426, allocations: 0 / 389 MB, free: 9.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003454/0.4429, allocations: 199.3 kB / 389.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.4429, allocations: 3.688 kB / 389.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.034e-06/0.443, allocations: 3.812 kB / 389.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.443, allocations: 3.875 kB / 389.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.4432, allocations: 52.31 kB / 389.3 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.79e-06/0.4433, allocations: 3.875 kB / 389.3 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.4434, allocations: 8.031 kB / 389.3 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.4434, allocations: 7.75 kB / 389.3 MB, free: 9.887 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.sampleHold.w,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 7.073e-05/0.4435, allocations: 117.7 kB / 389.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.4435, allocations: 14.98 kB / 389.4 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/0.4436, allocations: 15.59 kB / 389.5 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.062e-06/0.4436, allocations: 0 / 389.5 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.776e-06/0.4436, allocations: 3.844 kB / 389.5 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.937e-06/0.4436, allocations: 3.891 kB / 389.5 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000805/0.4445, allocations: 0.513 MB / 390 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.939e-06/0.4445, allocations: 0 / 390 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.4447, allocations: 39.67 kB / 390 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.763e-06/0.4448, allocations: 3.938 kB / 390 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.4448, allocations: 0 / 390 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.301e-06/0.4448, allocations: 6.969 kB / 390 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.12e-06/0.4448, allocations: 0 / 390 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.4452, allocations: 291.6 kB / 390.3 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.4453, allocations: 88.83 kB / 390.4 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.4453, allocations: 9.562 kB / 390.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.4454, allocations: 7.219 kB / 390.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.4455, allocations: 9.219 kB / 390.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.4455, allocations: 14.95 kB / 390.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.995e-05/0.4456, allocations: 90.53 kB / 390.5 MB, free: 9.109 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4456, allocations: 3.938 kB / 390.5 MB, free: 9.105 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004069/0.446, allocations: 45.12 kB / 390.6 MB, free: 9.102 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001189/0.4462, allocations: 108 kB / 390.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000273/0.4464, allocations: 123.2 kB / 390.8 MB, free: 9.008 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4465, allocations: 0 / 390.8 MB, free: 9.008 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.4466, allocations: 54.59 kB / 390.9 MB, free: 9.004 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.4468, allocations: 15.33 kB / 390.9 MB, free: 8.996 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.4478, allocations: 491.4 kB / 391.3 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.4484, allocations: 0.7259 MB / 392.1 MB, free: 24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.546e-05/0.4485, allocations: 17.3 kB / 392.1 MB, free: 23.99 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.94e-05/0.4486, allocations: 15.09 kB / 392.1 MB, free: 23.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.587e-06/0.4486, allocations: 1.5 kB / 392.1 MB, free: 23.98 MB / 330.7 MB Notification: Performance of Templates: time 0.004306/0.4529, allocations: 1.006 MB / 393.1 MB, free: 23.88 MB / 330.7 MB