Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.297/2.297, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.254e-05/5.278e-05, allocations: 4 kB / 284.4 MB, free: 8.094 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 50.36 MB / 334.8 MB, free: 5.637 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5564, allocations: 78.7 MB / 413.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.5567, allocations: 77.19 kB / 413.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006552/0.5633, allocations: 1.501 MB / 415.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5634, allocations: 7.938 kB / 415.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.5634, allocations: 4 kB / 415.1 MB, free: 13.89 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.0004737/0.5639, allocations: 355.6 kB / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5639, allocations: 8.031 kB / 415.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.689e-05/0.564, allocations: 41.86 kB / 415.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.564, allocations: 11.81 kB / 415.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.5643, allocations: 190 kB / 415.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.5643, allocations: 7.188 kB / 415.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.5644, allocations: 8 kB / 415.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.5647, allocations: 129.4 kB / 415.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5647, allocations: 0 / 415.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.5647, allocations: 3.984 kB / 415.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.5648, allocations: 0 / 415.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.7e-05/0.5648, allocations: 23.12 kB / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005151/0.5654, allocations: 356 kB / 416.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.5656, allocations: 160.6 kB / 416.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.5657, allocations: 31.14 kB / 416.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.5658, allocations: 0 / 416.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.5658, allocations: 34.5 kB / 416.4 MB, free: 12.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.683e-06/0.5658, allocations: 0 / 416.4 MB, free: 12.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002715/0.5661, allocations: 72.8 kB / 416.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.5662, allocations: 114.2 kB / 416.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.5664, allocations: 127.5 kB / 416.7 MB, free: 12.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.5664, allocations: 25.7 kB / 416.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.5665, allocations: 88.27 kB / 416.8 MB, free: 11.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.18e-05/0.5665, allocations: 11.39 kB / 416.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.5666, allocations: 4 kB / 416.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.5667, allocations: 318.1 kB / 417.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.262e-05/0.5668, allocations: 11.81 kB / 417.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.43e-05/0.5668, allocations: 39.16 kB / 417.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.759e-05/0.5669, allocations: 19.19 kB / 417.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.5669, allocations: 0 / 417.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001863/0.5671, allocations: 78.83 kB / 417.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.5672, allocations: 8 kB / 417.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.5672, allocations: 0 / 417.3 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.5672, allocations: 4 kB / 417.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.5674, allocations: 12 kB / 417.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.5674, allocations: 0 / 417.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.099e-05/0.5675, allocations: 16.05 kB / 417.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.5675, allocations: 7.953 kB / 417.3 MB, free: 11.42 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.561e-05/0.5676, allocations: 116.5 kB / 417.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.5678, allocations: 49.09 kB / 417.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.196e-05/0.5678, allocations: 11.47 kB / 417.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5678, allocations: 0 / 417.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.5679, allocations: 4 kB / 417.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5679, allocations: 0 / 417.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.5682, allocations: 179.7 kB / 417.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.5682, allocations: 0 / 417.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.5683, allocations: 15.98 kB / 417.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5684, allocations: 144 / 417.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.5684, allocations: 4 kB / 417.7 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.5684, allocations: 0 / 417.7 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.5684, allocations: 7.922 kB / 417.7 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.5687, allocations: 275.9 kB / 418 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.036e-05/0.5688, allocations: 89 kB / 418.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.5688, allocations: 7.172 kB / 418.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.569, allocations: 4 kB / 418.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.569, allocations: 7.953 kB / 418.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.5691, allocations: 0 / 418.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.5692, allocations: 113.4 kB / 418.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5692, allocations: 7.938 kB / 418.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003879/0.5696, allocations: 8 kB / 418.2 MB, free: 10.48 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.0008077/0.5704, allocations: 0.9618 MB / 419.2 MB, free: 9.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001935/0.5706, allocations: 30.81 kB / 419.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5707, allocations: 0 / 419.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.095e-05/0.5707, allocations: 11.42 kB / 419.2 MB, free: 9.465 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.5711, allocations: 27.2 kB / 419.3 MB, free: 9.441 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006861/0.5718, allocations: 167.9 kB / 419.4 MB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.5722, allocations: 0.7004 MB / 420.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.193e-05/0.5723, allocations: 4.188 kB / 420.1 MB, free: 8.516 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.489e-05/0.5723, allocations: 22.23 kB / 420.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5724, allocations: 0 / 420.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.5933, allocations: 1.496 MB / 421.6 MB, free: 7.074 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003187/0.5937, allocations: 189.6 kB / 421.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.131, allocations: 0 / 421.8 MB, free: 6.852 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat