Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 225.8 MB / 239.3 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.486e-05, allocations: 4 kB / 292.7 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 50.42 MB / 343.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5764, allocations: 77.19 MB / 420.4 MB, free: 7.891 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.5767, allocations: 77.05 kB / 420.4 MB, free: 7.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005984/0.5827, allocations: 1.57 MB / 422 MB, free: 7.488 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.546e-06/0.5827, allocations: 0 / 422 MB, free: 7.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.5828, allocations: 11.5 kB / 422 MB, free: 7.48 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000382/0.5832, allocations: 361.2 kB / 422.4 MB, free: 7.121 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.5832, allocations: 11.34 kB / 422.4 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.313e-05/0.5833, allocations: 37.95 kB / 422.4 MB, free: 7.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.493e-05/0.5833, allocations: 7.781 kB / 422.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.5835, allocations: 188.1 kB / 422.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.5835, allocations: 3.969 kB / 422.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.5836, allocations: 3.062 kB / 422.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.5839, allocations: 129.7 kB / 422.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.5839, allocations: 3.953 kB / 422.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.5839, allocations: 3.375 kB / 422.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.5839, allocations: 3.781 kB / 422.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.002e-05/0.584, allocations: 14.69 kB / 422.8 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.5845, allocations: 366.1 kB / 423.1 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.5847, allocations: 151.5 kB / 423.3 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/0.5848, allocations: 41.06 kB / 423.3 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.5848, allocations: 5.906 kB / 423.3 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.5848, allocations: 30.56 kB / 423.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.966e-06/0.5848, allocations: 0 / 423.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002363/0.5851, allocations: 67.39 kB / 423.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.5852, allocations: 116.3 kB / 423.5 MB, free: 6.012 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.5853, allocations: 125 kB / 423.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.5853, allocations: 25.7 kB / 423.7 MB, free: 5.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.5854, allocations: 92.55 kB / 423.8 MB, free: 5.797 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.5854, allocations: 7.781 kB / 423.8 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.5854, allocations: 3.188 kB / 423.8 MB, free: 5.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.5855, allocations: 313 kB / 424.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.5856, allocations: 14.81 kB / 424.1 MB, free: 5.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.127e-05/0.5856, allocations: 45.08 kB / 424.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.929e-05/0.5857, allocations: 13.27 kB / 424.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5857, allocations: 0 / 424.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001499/0.5858, allocations: 86.7 kB / 424.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.5859, allocations: 7.844 kB / 424.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5859, allocations: 0 / 424.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.5859, allocations: 0 / 424.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.5861, allocations: 18.05 kB / 424.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.5861, allocations: 3.938 kB / 424.3 MB, free: 5.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.81e-05/0.5862, allocations: 10.14 kB / 424.3 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.5862, allocations: 3.844 kB / 424.3 MB, free: 5.371 MB / 330.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 6.202e-05/0.5863, allocations: 111.6 kB / 424.4 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.5864, allocations: 50.83 kB / 424.4 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.887e-05/0.5864, allocations: 16.84 kB / 424.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.5865, allocations: 3.875 kB / 424.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5865, allocations: 0 / 424.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.5865, allocations: 0 / 424.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.5868, allocations: 177.6 kB / 424.6 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.5868, allocations: 4 kB / 424.6 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.407e-05/0.5869, allocations: 14.59 kB / 424.6 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5869, allocations: 7.953 kB / 424.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.5869, allocations: 0 / 424.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-06/0.5869, allocations: 3.875 kB / 424.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.5869, allocations: 0 / 424.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.5871, allocations: 270.8 kB / 424.9 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.5872, allocations: 95.14 kB / 425 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.5873, allocations: 6.797 kB / 425 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.5874, allocations: 3.656 kB / 425 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.5875, allocations: 3.125 kB / 425 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.5875, allocations: 6.719 kB / 425 MB, free: 4.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.5878, allocations: 106.6 kB / 425.1 MB, free: 20.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5878, allocations: 0 / 425.1 MB, free: 20.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003866/0.5882, allocations: 11.22 kB / 425.1 MB, free: 20.59 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.0007552/0.589, allocations: 0.9677 MB / 426.1 MB, free: 19.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.5891, allocations: 30.56 kB / 426.1 MB, free: 19.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5891, allocations: 0 / 426.1 MB, free: 19.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.5892, allocations: 11.08 kB / 426.2 MB, free: 19.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.5896, allocations: 30.64 kB / 426.2 MB, free: 19.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005924/0.5902, allocations: 157.7 kB / 426.3 MB, free: 19.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.5906, allocations: 0.7009 MB / 427 MB, free: 18.81 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.153e-05/0.5906, allocations: 4.031 kB / 427 MB, free: 18.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.5907, allocations: 19.89 kB / 427.1 MB, free: 18.8 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.5907, allocations: 3.938 kB / 427.1 MB, free: 18.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.614, allocations: 1.487 MB / 428.6 MB, free: 18.55 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002647/0.6144, allocations: 184 kB / 428.7 MB, free: 18.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/3.004, allocations: 11.06 kB / 428.7 MB, free: 18.32 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat