Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.254/2.254, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.482e-05, allocations: 3.797 kB / 292.7 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 50.42 MB / 343.2 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4877/0.6045, allocations: 76.35 MB / 419.5 MB, free: 1.461 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.6048, allocations: 70.33 kB / 419.6 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00347/0.6083, allocations: 0.8813 MB / 420.5 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6084, allocations: 0 / 420.5 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.6084, allocations: 0 / 420.5 MB, free: 0.6367 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004501/0.6089, allocations: 337.2 kB / 420.8 MB, free: 272 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.6089, allocations: 8.031 kB / 420.8 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.267e-05/0.609, allocations: 38.38 kB / 420.8 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.609, allocations: 7.859 kB / 420.8 MB, free: 212 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.6093, allocations: 177.5 kB / 421 MB, free: 15.99 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.6095, allocations: 33.64 kB / 421.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.6095, allocations: 10.81 kB / 421.1 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.6098, allocations: 113.4 kB / 421.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.6099, allocations: 0 / 421.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.6099, allocations: 11.36 kB / 421.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.6099, allocations: 7.953 kB / 421.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.198e-05/0.61, allocations: 15.05 kB / 421.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.6102, allocations: 160.4 kB / 421.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.6105, allocations: 140.7 kB / 421.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.078e-05/0.6105, allocations: 23.23 kB / 421.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-06/0.6106, allocations: 0 / 421.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.6106, allocations: 38.56 kB / 421.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.953e-06/0.6106, allocations: 0 / 421.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002207/0.6108, allocations: 63.08 kB / 421.6 MB, free: 15.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/0.6109, allocations: 59.61 kB / 421.7 MB, free: 15.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.515e-05/0.611, allocations: 99.98 kB / 421.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.6111, allocations: 25.7 kB / 421.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.6111, allocations: 91.58 kB / 421.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.6112, allocations: 3.906 kB / 421.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.6112, allocations: 0 / 421.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6113, allocations: 318.7 kB / 422.2 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.491e-05/0.6114, allocations: 15.81 kB / 422.2 MB, free: 14.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.884e-05/0.6114, allocations: 40.22 kB / 422.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.952e-05/0.6115, allocations: 8 kB / 422.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6115, allocations: 0 / 422.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001541/0.6117, allocations: 68.69 kB / 422.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.6117, allocations: 4 kB / 422.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.6117, allocations: 0 / 422.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.6117, allocations: 4 kB / 422.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.681e-05/0.6118, allocations: 15.92 kB / 422.4 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.6118, allocations: 0 / 422.4 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.351e-05/0.6119, allocations: 16.05 kB / 422.4 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.6119, allocations: 3.5 kB / 422.4 MB, free: 14.56 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: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * 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.343e-05/0.612, allocations: 108.9 kB / 422.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.6122, allocations: 63.84 kB / 422.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.6122, allocations: 11.22 kB / 422.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.6122, allocations: 4 kB / 422.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.6122, allocations: 0 / 422.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.6123, allocations: 0 / 422.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.6124, allocations: 161 kB / 422.7 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.6124, allocations: 4 kB / 422.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.437e-06/0.6124, allocations: 0 / 422.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.6124, allocations: 0 / 422.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.6125, allocations: 10.73 kB / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.6125, allocations: 0 / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.6125, allocations: 0 / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.6127, allocations: 83.89 kB / 422.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.565e-05/0.6127, allocations: 81.11 kB / 422.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.6128, allocations: 4 kB / 422.9 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.6129, allocations: 11.92 kB / 422.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-06/0.6129, allocations: 0 / 422.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.6129, allocations: 0 / 422.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.627e-05/0.613, allocations: 90.84 kB / 423 MB, free: 13.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.613, allocations: 0 / 423 MB, free: 13.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002633/0.6133, allocations: 4 kB / 423 MB, free: 13.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0006186/0.6139, allocations: 0.6627 MB / 423.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.6141, allocations: 27.31 kB / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6141, allocations: 0 / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.483e-06/0.6141, allocations: 0 / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008422/0.6149, allocations: 0.7214 MB / 424.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004199/0.6154, allocations: 116.1 kB / 424.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.6157, allocations: 0.6809 MB / 425.2 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.673e-05/0.6158, allocations: 8.172 kB / 425.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.6158, allocations: 10.5 kB / 425.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6159, allocations: 4 kB / 425.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.6369, allocations: 1.402 MB / 426.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000367/0.6374, allocations: 179.3 kB / 426.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/2.891, allocations: 0 / 426.8 MB, free: 10.02 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat does not exist to compare? outputFormat=mat