Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestRealtimeSynchronize,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestRealtimeSynchronize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.232/2.232, allocations: 237.8 MB / 250.4 MB, free: 8.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.199e-05/3.204e-05, allocations: 0 / 306.7 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 53.27 MB / 360 MB, free: 5.508 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5064/0.6205, allocations: 82.98 MB / 442.9 MB, free: 7.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.6208, allocations: 76.55 kB / 443 MB, free: 7.551 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01469/0.6356, allocations: 3.33 MB / 446.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6356, allocations: 0 / 446.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.491e-05/0.6356, allocations: 8.656 kB / 446.4 MB, free: 4.23 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.0006293/0.6363, allocations: 434.9 kB / 446.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.6364, allocations: 12.03 kB / 446.8 MB, free: 3.75 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.846e-05/0.6365, allocations: 54.55 kB / 446.9 MB, free: 3.688 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.6365, allocations: 23.72 kB / 446.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.637, allocations: 254.9 kB / 447.1 MB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.6371, allocations: 11.95 kB / 447.1 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.127e-05/0.6371, allocations: 16 kB / 447.2 MB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.6376, allocations: 177.2 kB / 447.3 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.6376, allocations: 0 / 447.3 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.6376, allocations: 19.91 kB / 447.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.6377, allocations: 4 kB / 447.3 MB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/0.6379, allocations: 79.98 kB / 447.4 MB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.6391, allocations: 0.5672 MB / 448 MB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.6392, allocations: 61.16 kB / 448.1 MB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.236e-05/0.6393, allocations: 33.83 kB / 448.1 MB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.6394, allocations: 0 / 448.1 MB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.6396, allocations: 93.11 kB / 448.2 MB, free: 2.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.973e-06/0.6396, allocations: 0 / 448.2 MB, free: 2.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003501/0.6399, allocations: 117.5 kB / 448.3 MB, free: 2.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.64, allocations: 85.09 kB / 448.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.6403, allocations: 167.2 kB / 448.5 MB, free: 1.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.6403, allocations: 33.73 kB / 448.6 MB, free: 1.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.6405, allocations: 144.1 kB / 448.7 MB, free: 1.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.6405, allocations: 23.73 kB / 448.7 MB, free: 1.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.046e-05/0.6405, allocations: 4 kB / 448.7 MB, free: 1.605 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.6407, allocations: 330.8 kB / 449.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/0.6408, allocations: 19.94 kB / 449.1 MB, free: 1.254 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.6409, allocations: 114.3 kB / 449.2 MB, free: 1.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.6411, allocations: 43.94 kB / 449.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.6411, allocations: 0 / 449.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004244/0.6415, allocations: 177.4 kB / 449.4 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.6416, allocations: 4 kB / 449.4 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.6416, allocations: 7.938 kB / 449.4 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.6416, allocations: 4 kB / 449.4 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.6418, allocations: 23.92 kB / 449.4 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.6418, allocations: 4 kB / 449.5 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.6419, allocations: 11.91 kB / 449.5 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.642, allocations: 15.95 kB / 449.5 MB, free: 0.8086 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.0002463/0.6422, allocations: 156 kB / 449.6 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.6423, allocations: 15.81 kB / 449.6 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.013e-05/0.6424, allocations: 13.53 kB / 449.7 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.6424, allocations: 0 / 449.7 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.6424, allocations: 3.984 kB / 449.7 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.6424, allocations: 4 kB / 449.7 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006891/0.6431, allocations: 422.4 kB / 450.1 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.6431, allocations: 0 / 450.1 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.035e-05/0.6432, allocations: 7.938 kB / 450.1 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.6432, allocations: 0 / 450.1 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.6432, allocations: 3.984 kB / 450.1 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.6432, allocations: 4 kB / 450.1 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6432, allocations: 0 / 450.1 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000346/0.6436, allocations: 238.5 kB / 450.3 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.579e-05/0.6437, allocations: 88.92 kB / 450.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.6437, allocations: 0 / 450.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.6438, allocations: 4 kB / 450.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.804e-05/0.6439, allocations: 11.94 kB / 450.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.6439, allocations: 4 kB / 450.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.6441, allocations: 130 kB / 450.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6441, allocations: 3.938 kB / 450.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004588/0.6445, allocations: 51.73 kB / 450.6 MB, free: 15.57 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.001336/0.6459, allocations: 1.008 MB / 451.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003143/0.6462, allocations: 83.88 kB / 451.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6462, allocations: 4.688 kB / 451.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.6463, allocations: 31.92 kB / 451.7 MB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.6466, allocations: 16.02 kB / 451.8 MB, free: 14.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.6482, allocations: 386.3 kB / 452.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.6486, allocations: 0.7361 MB / 452.9 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.329e-05/0.6487, allocations: 29.12 kB / 452.9 MB, free: 13.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.6489, allocations: 51.42 kB / 453 MB, free: 13.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6489, allocations: 0 / 453 MB, free: 13.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.673, allocations: 3.019 MB / 456 MB, free: 10.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004222/0.6735, allocations: 249.1 kB / 456.2 MB, free: 9.941 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/3.273, allocations: 3.125 kB / 456.2 MB, free: 9.941 MB / 378.7 MB