Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.137/2.137, allocations: 237.8 MB / 250.4 MB, free: 8.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.522e-05/3.528e-05, allocations: 4 kB / 306.6 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.135, allocations: 53.27 MB / 359.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4991, allocations: 82.98 MB / 442.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/0.4995, allocations: 77.17 kB / 442.9 MB, free: 7.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.021/0.5205, allocations: 3.337 MB / 446.3 MB, free: 4.414 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.043e-06/0.5205, allocations: 0 / 446.3 MB, free: 4.414 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.284e-05/0.5206, allocations: 8.703 kB / 446.3 MB, free: 4.406 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008375/0.5215, allocations: 427 kB / 446.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.5215, allocations: 8.031 kB / 446.7 MB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.5217, allocations: 27.7 kB / 446.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/0.5223, allocations: 254.5 kB / 447 MB, free: 3.621 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.181e-05/0.5224, allocations: 12.34 kB / 447 MB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.5224, allocations: 15.95 kB / 447 MB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006701/0.5231, allocations: 181.2 kB / 447.2 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.5232, allocations: 3.938 kB / 447.2 MB, free: 3.395 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.5232, allocations: 8 kB / 447.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.5233, allocations: 4 kB / 447.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.5237, allocations: 83.98 kB / 447.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.5253, allocations: 0.5632 MB / 447.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.5255, allocations: 65.16 kB / 447.9 MB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.5257, allocations: 29.84 kB / 447.9 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.5257, allocations: 0 / 447.9 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.526, allocations: 97.17 kB / 448 MB, free: 2.453 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 4.26e-06/0.526, allocations: 0 / 448 MB, free: 2.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004878/0.5265, allocations: 113.4 kB / 448.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/0.5267, allocations: 85.11 kB / 448.2 MB, free: 2.234 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.527, allocations: 163.2 kB / 448.4 MB, free: 2.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.5271, allocations: 37.73 kB / 448.4 MB, free: 2.027 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.5273, allocations: 132.2 kB / 448.5 MB, free: 1.895 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.838e-05/0.5274, allocations: 35.62 kB / 448.6 MB, free: 1.859 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.5274, allocations: 4 kB / 448.6 MB, free: 1.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.5277, allocations: 334.7 kB / 448.9 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.5278, allocations: 20 kB / 448.9 MB, free: 1.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.5281, allocations: 111 kB / 449 MB, free: 1.352 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.5283, allocations: 47.95 kB / 449.1 MB, free: 1.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.407e-06/0.5284, allocations: 0 / 449.1 MB, free: 1.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006793/0.5291, allocations: 169.4 kB / 449.3 MB, free: 1.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.5291, allocations: 11.94 kB / 449.3 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.5292, allocations: 7.984 kB / 449.3 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.5292, allocations: 4 kB / 449.3 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.5294, allocations: 23.94 kB / 449.3 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/0.5294, allocations: 4 kB / 449.3 MB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.5296, allocations: 11.91 kB / 449.3 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.5297, allocations: 11.98 kB / 449.3 MB, free: 1.059 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: realtimeSynchronize.rtSync_Sampled.simTime:DISCRETE(unit = "s" fixed = false ) "(= time) Simulation time at the the real-time sync function invocation" type: Real realtimeSynchronize.rtSync_Sampled.lastSimTime:DISCRETE(unit = "s" fixed = false ) "Simulation time at the previous invocation of the real-time sync function, the simulation start time at its the first invocation" type: Real realtimeSynchronize.rtSync_Sampled.computingTime:DISCRETE(unit = "s" fixed = false ) "Wall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds" type: Real realtimeSynchronize.rtSync_Sampled.remainingTime:DISCRETE(unit = "s" fixed = false ) "Wall clock time that is left before real-time deadline is reached" type: Real realtimeSynchronize.rtSync_Sampled.wallClockTime:DISCRETE(unit = "s" fixed = false ) "Wall clock time (= real-time) that elapsed since initialization of the real-time synchronization object" type: Real realtimeSynchronize.rtSync_Sampled.lastStepSize:DISCRETE(unit = "s" fixed = false ) "(= time - lastSimTime) The last simulation time step size between invocations of the real-time sync function" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.simTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastSimTime,realtimeSynchronize.rtSync_Sampled.lastSimTime,$PRE.realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.computingTime,$PRE.realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.remainingTime,$PRE.realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.wallClockTime,$PRE.realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastStepSize,$whenCondition2,pre1.u,$whenCondition1,$PRE.pre1.u,pre1.y,realtimeSynchronize.rtSync_Sampled.internalTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0002962/0.53, allocations: 154.1 kB / 449.5 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.5301, allocations: 19.81 kB / 449.5 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.268e-05/0.5302, allocations: 13.52 kB / 449.5 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.554e-06/0.5302, allocations: 4 kB / 449.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.594e-06/0.5302, allocations: 0 / 449.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.5303, allocations: 4 kB / 449.5 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009936/0.5313, allocations: 426.4 kB / 449.9 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.771e-06/0.5313, allocations: 0 / 449.9 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.348e-05/0.5314, allocations: 3.938 kB / 449.9 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.5314, allocations: 4 kB / 449.9 MB, free: 396 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.5314, allocations: 0 / 449.9 MB, free: 396 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.165e-06/0.5314, allocations: 0 / 449.9 MB, free: 396 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5315, allocations: 0 / 449.9 MB, free: 396 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004869/0.532, allocations: 245.7 kB / 450.2 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.5321, allocations: 92.91 kB / 450.3 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.5322, allocations: 4 kB / 450.3 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.5324, allocations: 0 / 450.3 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.5324, allocations: 7.953 kB / 450.3 MB, free: 0 / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.209e-05/0.5325, allocations: 8.047 kB / 450.3 MB, free: 15.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001979/0.5328, allocations: 133.9 kB / 450.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.12e-06/0.5328, allocations: 0 / 450.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001091/0.5339, allocations: 43.94 kB / 450.5 MB, free: 15.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (realtimeSynchronize.rtSync_Sampled.internalTrigger,pre1.y,$whenCondition2,$whenCondition1,pre1.u,realtimeSynchronize.rtSync_Sampled.wallClockTime,realtimeSynchronize.rtSync_Sampled.remainingTime,realtimeSynchronize.rtSync_Sampled.computingTime,realtimeSynchronize.rtSync_Sampled.simTime,realtimeSynchronize.rtSync_Sampled.lastStepSize,realtimeSynchronize.rtSync_Sampled.lastSimTime) * Number of discrete states: 1 (pre1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001655/0.5356, allocations: 277 kB / 450.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005843/0.5362, allocations: 95.86 kB / 450.8 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.718e-06/0.5363, allocations: 0 / 450.8 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.5365, allocations: 31.94 kB / 450.9 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005869/0.5371, allocations: 11.91 kB / 450.9 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.5399, allocations: 325.6 kB / 451.2 MB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.5411, allocations: 0.7439 MB / 451.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.5413, allocations: 25.08 kB / 452 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.5415, allocations: 19.42 kB / 452 MB, free: 14.32 MB / 378.7 MB Notification: Performance of SimCode: time 3.73e-06/0.5415, allocations: 0 / 452 MB, free: 14.32 MB / 378.7 MB Notification: Performance of Templates: time 0.01033/0.5519, allocations: 1.402 MB / 453.4 MB, free: 12.91 MB / 378.7 MB