Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.149e-05, allocations: 0 / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.42 MB / 342.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4752/0.5849, allocations: 77.34 MB / 420 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5852, allocations: 78.77 kB / 420.1 MB, free: 452 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006557/0.5918, allocations: 1.444 MB / 421.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5919, allocations: 0 / 421.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.5919, allocations: 0 / 421.5 MB, free: 15.19 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.0005298/0.5924, allocations: 354.3 kB / 421.9 MB, free: 14.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.5925, allocations: 8.031 kB / 421.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.549e-05/0.5925, allocations: 39.06 kB / 421.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.5926, allocations: 11.86 kB / 421.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.5928, allocations: 182.9 kB / 422.1 MB, free: 14.52 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.0001332/0.593, allocations: 45.56 kB / 422.1 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.593, allocations: 7.938 kB / 422.2 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000418/0.5935, allocations: 151.3 kB / 422.3 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.5935, allocations: 0 / 422.3 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.5935, allocations: 0 / 422.3 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.5935, allocations: 15.89 kB / 422.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.5936, allocations: 23.69 kB / 422.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002269/0.5939, allocations: 182.2 kB / 422.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.5942, allocations: 161.5 kB / 422.7 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.779e-05/0.5943, allocations: 33.47 kB / 422.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.5944, allocations: 7.875 kB / 422.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.5944, allocations: 42.48 kB / 422.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.5944, allocations: 0 / 422.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002735/0.5947, allocations: 73.11 kB / 422.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.5948, allocations: 92.84 kB / 422.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.595, allocations: 112.5 kB / 423 MB, free: 13.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.595, allocations: 29.73 kB / 423.1 MB, free: 13.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/0.5951, allocations: 91.94 kB / 423.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.5951, allocations: 11.84 kB / 423.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.5951, allocations: 0 / 423.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.5953, allocations: 322.8 kB / 423.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.629e-05/0.5953, allocations: 7.938 kB / 423.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.21e-05/0.5954, allocations: 53.89 kB / 423.5 MB, free: 13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.033e-05/0.5955, allocations: 16.62 kB / 423.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5955, allocations: 0 / 423.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001984/0.5957, allocations: 89 kB / 423.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5957, allocations: 7.984 kB / 423.6 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5958, allocations: 4 kB / 423.6 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.5958, allocations: 0 / 423.6 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.5959, allocations: 19.94 kB / 423.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.596, allocations: 3.938 kB / 423.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.187e-05/0.5961, allocations: 15.84 kB / 423.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.5961, allocations: 8.219 kB / 423.7 MB, free: 12.85 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 9.366e-05/0.5962, allocations: 108.5 kB / 423.8 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.5964, allocations: 73.16 kB / 423.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.568e-05/0.5964, allocations: 16.55 kB / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.5965, allocations: 0 / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5965, allocations: 0 / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5965, allocations: 192 / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.5967, allocations: 181.4 kB / 424.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5967, allocations: 3.938 kB / 424.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.5968, allocations: 15.98 kB / 424.1 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5968, allocations: 0 / 424.1 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.5969, allocations: 7.938 kB / 424.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.5969, allocations: 0 / 424.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5969, allocations: 0 / 424.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.5972, allocations: 130.4 kB / 424.2 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.647e-05/0.5973, allocations: 96.94 kB / 424.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.5973, allocations: 4 kB / 424.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.5974, allocations: 7.812 kB / 424.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.5975, allocations: 3.984 kB / 424.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.5975, allocations: 4 kB / 424.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.113e-05/0.5976, allocations: 91.2 kB / 424.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5976, allocations: 0 / 424.4 MB, free: 12.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002879/0.5979, allocations: 19.89 kB / 424.4 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.0007098/0.5986, allocations: 0.7571 MB / 425.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001758/0.5988, allocations: 39.56 kB / 425.2 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5988, allocations: 0.5 kB / 425.2 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.232e-05/0.5989, allocations: 15.8 kB / 425.3 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007627/0.5996, allocations: 0.7096 MB / 426 MB, free: 10.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00054/0.6002, allocations: 143.2 kB / 426.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.6006, allocations: 0.6978 MB / 426.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.686e-05/0.6006, allocations: 8.312 kB / 426.8 MB, free: 9.621 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.313e-05/0.6007, allocations: 23.11 kB / 426.8 MB, free: 9.609 MB / 346.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6007, allocations: 0 / 426.8 MB, free: 9.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.6216, allocations: 1.645 MB / 428.5 MB, free: 8.047 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003442/0.6221, allocations: 170.6 kB / 428.6 MB, free: 7.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.161, allocations: 0 / 428.6 MB, free: 7.82 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat