Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.205/2.205, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.896e-05, allocations: 0 / 292.8 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1353, allocations: 50.42 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.5871, allocations: 77.34 MB / 420.5 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.5875, allocations: 77.95 kB / 420.6 MB, free: 460 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008641/0.5962, allocations: 1.436 MB / 422 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5963, allocations: 0 / 422 MB, free: 15.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.5963, allocations: 0 / 422 MB, free: 15.2 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007185/0.597, allocations: 366.6 kB / 422.4 MB, free: 14.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/0.5971, allocations: 8.031 kB / 422.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.679e-05/0.5972, allocations: 42.42 kB / 422.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.38e-05/0.5973, allocations: 11.86 kB / 422.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.5976, allocations: 182.8 kB / 422.6 MB, free: 14.53 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.5978, allocations: 37.19 kB / 422.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.5978, allocations: 4 kB / 422.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005737/0.5984, allocations: 155.8 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5985, allocations: 0 / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.5985, allocations: 4 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.5985, allocations: 3.953 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.5987, allocations: 31.42 kB / 422.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000304/0.599, allocations: 181.8 kB / 423 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.5995, allocations: 161.8 kB / 423.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.5996, allocations: 33.47 kB / 423.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.5997, allocations: 3.938 kB / 423.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.5997, allocations: 38.31 kB / 423.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 4.208e-06/0.5997, allocations: 0 / 423.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003842/0.6001, allocations: 77.17 kB / 423.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.6003, allocations: 96.84 kB / 423.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.6005, allocations: 112.9 kB / 423.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.6005, allocations: 29.64 kB / 423.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.6006, allocations: 83.64 kB / 423.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.6006, allocations: 15.83 kB / 423.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-06/0.6007, allocations: 0 / 423.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.6008, allocations: 314.8 kB / 424 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.965e-05/0.6009, allocations: 15.97 kB / 424 MB, free: 13.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.601, allocations: 54.92 kB / 424 MB, free: 13.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.884e-05/0.6011, allocations: 19.69 kB / 424.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6011, allocations: 0 / 424.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002939/0.6014, allocations: 81.23 kB / 424.1 MB, free: 12.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.6015, allocations: 4 kB / 424.1 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.6015, allocations: 4 kB / 424.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.6016, allocations: 4.156 kB / 424.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.6018, allocations: 31.36 kB / 424.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.6018, allocations: 0 / 424.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.602, allocations: 11.86 kB / 424.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.602, allocations: 4 kB / 424.2 MB, free: 12.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001607/0.6022, allocations: 112.9 kB / 424.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/0.6024, allocations: 72.77 kB / 424.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.278e-05/0.6025, allocations: 16.48 kB / 424.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.6026, allocations: 0 / 424.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.6026, allocations: 4 kB / 424.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.6026, allocations: 0 / 424.4 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.6028, allocations: 181.3 kB / 424.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6029, allocations: 0 / 424.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.6031, allocations: 11.98 kB / 424.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.6031, allocations: 0 / 424.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.6031, allocations: 7.875 kB / 424.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.319e-06/0.6031, allocations: 0 / 424.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6032, allocations: 4.109 kB / 424.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003755/0.6036, allocations: 134.7 kB / 424.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.6037, allocations: 89 kB / 424.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.6038, allocations: 4.125 kB / 424.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.6039, allocations: 7.984 kB / 424.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.604, allocations: 7.938 kB / 424.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.604, allocations: 3.938 kB / 424.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.6042, allocations: 103.6 kB / 424.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.6042, allocations: 0 / 424.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000491/0.6047, allocations: 19.83 kB / 425 MB, free: 12.05 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.001149/0.6059, allocations: 0.7567 MB / 425.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002828/0.6062, allocations: 43.42 kB / 425.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6062, allocations: 0 / 425.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.03e-05/0.6063, allocations: 7.938 kB / 425.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.6074, allocations: 0.7099 MB / 426.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008956/0.6083, allocations: 147.5 kB / 426.6 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.6088, allocations: 0.6965 MB / 427.3 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.382e-05/0.6089, allocations: 4.188 kB / 427.3 MB, free: 9.633 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.085e-05/0.609, allocations: 23.17 kB / 427.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of SimCode: time 1.553e-06/0.609, allocations: 0 / 427.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06337/0.6724, allocations: 1.638 MB / 429 MB, free: 8.062 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004019/0.6729, allocations: 172.1 kB / 429.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.994, allocations: 0 / 429.2 MB, free: 7.836 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat