Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.139/2.139, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.839e-05/3.857e-05, allocations: 4 kB / 284.4 MB, free: 8.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.152, allocations: 50.37 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4283/0.5803, allocations: 78.75 MB / 413.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5806, allocations: 74.27 kB / 413.6 MB, free: 15.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006568/0.5872, allocations: 1.501 MB / 415.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.498e-06/0.5873, allocations: 4 kB / 415.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.5873, allocations: 7.938 kB / 415.1 MB, free: 13.83 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005239/0.5878, allocations: 365.9 kB / 415.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.5879, allocations: 8.031 kB / 415.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.032e-05/0.588, allocations: 34.56 kB / 415.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.588, allocations: 11.81 kB / 415.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.5883, allocations: 190.4 kB / 415.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.5883, allocations: 7.938 kB / 415.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.5883, allocations: 7.984 kB / 415.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.5887, allocations: 121 kB / 415.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.5887, allocations: 0 / 415.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.5887, allocations: 0 / 415.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.5887, allocations: 3.984 kB / 415.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.674e-05/0.5888, allocations: 23.88 kB / 415.9 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005599/0.5894, allocations: 353.2 kB / 416.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.5897, allocations: 158 kB / 416.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.005e-05/0.5898, allocations: 30.39 kB / 416.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.5898, allocations: 4 kB / 416.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.5898, allocations: 42.31 kB / 416.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.795e-06/0.5899, allocations: 0 / 416.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002757/0.5901, allocations: 72.84 kB / 416.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.5902, allocations: 106.8 kB / 416.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.5904, allocations: 130.3 kB / 416.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.5904, allocations: 25.7 kB / 416.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.007e-05/0.5905, allocations: 162.6 kB / 416.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.5906, allocations: 3.906 kB / 416.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.5906, allocations: 3.812 kB / 416.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.5907, allocations: 314.9 kB / 417.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.902e-05/0.5908, allocations: 11.88 kB / 417.2 MB, free: 11.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.716e-05/0.5909, allocations: 40.09 kB / 417.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.509e-05/0.5909, allocations: 11.88 kB / 417.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.591, allocations: 7.938 kB / 417.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00017/0.5911, allocations: 69.31 kB / 417.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.5912, allocations: 11.98 kB / 417.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.5912, allocations: 0 / 417.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.5912, allocations: 4 kB / 417.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.5914, allocations: 8 kB / 417.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.5914, allocations: 0 / 417.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.294e-05/0.5915, allocations: 23.95 kB / 417.4 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.5915, allocations: 7.953 kB / 417.4 MB, free: 11.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.53e-05/0.5916, allocations: 116.3 kB / 417.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.5918, allocations: 53.47 kB / 417.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.5918, allocations: 11.97 kB / 417.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.5919, allocations: 0 / 417.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5919, allocations: 4 kB / 417.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5919, allocations: 0 / 417.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003268/0.5922, allocations: 181.1 kB / 417.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5922, allocations: 0 / 417.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.5923, allocations: 12 kB / 417.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.5924, allocations: 0 / 417.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.5924, allocations: 7.984 kB / 417.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.5924, allocations: 0 / 417.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5924, allocations: 0 / 417.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002789/0.5927, allocations: 282.4 kB / 418.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.47e-05/0.5928, allocations: 89 kB / 418.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.5929, allocations: 3.938 kB / 418.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.593, allocations: 7.984 kB / 418.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.5931, allocations: 7.953 kB / 418.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.5931, allocations: 0 / 418.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.5932, allocations: 111.4 kB / 418.3 MB, free: 10.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5932, allocations: 0 / 418.3 MB, free: 10.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003905/0.5936, allocations: 15.81 kB / 418.3 MB, free: 10.36 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0007474/0.5944, allocations: 0.9618 MB / 419.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001517/0.5946, allocations: 27.75 kB / 419.3 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5946, allocations: 0 / 419.3 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.747e-05/0.5946, allocations: 7.875 kB / 419.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.5951, allocations: 27.62 kB / 419.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006862/0.5958, allocations: 190.7 kB / 419.5 MB, free: 9.105 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.5961, allocations: 0.7041 MB / 420.2 MB, free: 8.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.5962, allocations: 27.23 kB / 420.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5962, allocations: 0 / 420.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.323/2.919, allocations: 1.174 MB / 421.4 MB, free: 7.191 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat