Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.129/2.129, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.334e-05, allocations: 4 kB / 284.4 MB, free: 8.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1142, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4629/0.5772, allocations: 79.04 MB / 413.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5775, allocations: 74.89 kB / 413.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006501/0.584, allocations: 1.643 MB / 415.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5841, allocations: 0 / 415.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.5841, allocations: 4 kB / 415.5 MB, free: 13.36 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004851/0.5846, allocations: 365.1 kB / 415.9 MB, free: 12.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.5846, allocations: 8.031 kB / 415.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.574e-05/0.5847, allocations: 36.69 kB / 415.9 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.5848, allocations: 11.91 kB / 415.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.585, allocations: 210.1 kB / 416.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.585, allocations: 3.125 kB / 416.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.5851, allocations: 4 kB / 416.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.5854, allocations: 129.2 kB / 416.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5854, allocations: 0 / 416.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.5855, allocations: 0 / 416.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.5855, allocations: 8 kB / 416.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.693e-05/0.5856, allocations: 18.62 kB / 416.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005504/0.5861, allocations: 306.9 kB / 416.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.5864, allocations: 149.1 kB / 416.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.006e-05/0.5865, allocations: 32.91 kB / 416.8 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.5866, allocations: 4.062 kB / 416.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001214/0.5867, allocations: 66.2 kB / 416.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.034e-06/0.5867, allocations: 0 / 416.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002483/0.587, allocations: 83.03 kB / 416.9 MB, free: 11.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.587, allocations: 84.17 kB / 417 MB, free: 11.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.5872, allocations: 139.8 kB / 417.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.5872, allocations: 28.7 kB / 417.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.427e-05/0.5873, allocations: 161.3 kB / 417.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.5874, allocations: 10.84 kB / 417.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-06/0.5874, allocations: 3.062 kB / 417.3 MB, free: 11.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5875, allocations: 314.8 kB / 417.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.506e-05/0.5876, allocations: 22.5 kB / 417.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.442e-05/0.5877, allocations: 54.78 kB / 417.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.393e-05/0.5878, allocations: 21.98 kB / 417.7 MB, free: 11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.5878, allocations: 4 kB / 417.8 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002287/0.588, allocations: 98.08 kB / 417.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.5881, allocations: 7.938 kB / 417.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5881, allocations: 4 kB / 417.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.5881, allocations: 0 / 417.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.5883, allocations: 19.92 kB / 417.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.5883, allocations: 3.953 kB / 417.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.43e-05/0.5884, allocations: 11.33 kB / 417.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.5884, allocations: 12.05 kB / 417.9 MB, free: 10.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 9.285e-05/0.5885, allocations: 112.3 kB / 418 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.5886, allocations: 55.84 kB / 418.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.5887, allocations: 15.16 kB / 418.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5887, allocations: 3.938 kB / 418.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.5887, allocations: 0 / 418.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.5887, allocations: 11.94 kB / 418.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.5891, allocations: 327.5 kB / 418.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.5891, allocations: 0 / 418.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.73e-05/0.5893, allocations: 8 kB / 418.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.5893, allocations: 7.984 kB / 418.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.5893, allocations: 0 / 418.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.5893, allocations: 7.891 kB / 418.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5893, allocations: 0 / 418.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.5896, allocations: 205.8 kB / 418.6 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.12e-05/0.5897, allocations: 96.94 kB / 418.7 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.5898, allocations: 7.328 kB / 418.7 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.5899, allocations: 4 kB / 418.8 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.5899, allocations: 7.984 kB / 418.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.59, allocations: 3.5 kB / 418.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.5901, allocations: 110.4 kB / 418.9 MB, free: 9.852 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5901, allocations: 0 / 418.9 MB, free: 9.852 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003397/0.5904, allocations: 23.19 kB / 418.9 MB, free: 9.832 MB / 346.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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0006836/0.5911, allocations: 0.833 MB / 419.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001753/0.5913, allocations: 55.23 kB / 419.8 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5913, allocations: 4.125 kB / 419.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.786e-05/0.5914, allocations: 15.12 kB / 419.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.5917, allocations: 29.77 kB / 419.8 MB, free: 8.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000598/0.5923, allocations: 201.7 kB / 420 MB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.5927, allocations: 0.7043 MB / 420.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.5928, allocations: 25.98 kB / 420.8 MB, free: 7.941 MB / 346.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5928, allocations: 4 kB / 420.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.36/2.953, allocations: 1.385 MB / 422.1 MB, free: 6.562 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat