Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.521e-05, allocations: 4 kB / 292.2 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 50.41 MB / 342.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4392/0.5457, allocations: 81.57 MB / 424.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004541/0.5462, allocations: 83.27 kB / 424.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04383/0.5901, allocations: 6.184 MB / 430.5 MB, free: 7.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5901, allocations: 0 / 430.5 MB, free: 7.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.365e-05/0.5902, allocations: 11.98 kB / 430.5 MB, free: 7.418 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001099/0.5913, allocations: 496.7 kB / 431 MB, free: 6.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.5914, allocations: 12.03 kB / 431 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.285e-05/0.5915, allocations: 33.88 kB / 431 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.5916, allocations: 23.72 kB / 431 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008678/0.5925, allocations: 296.9 kB / 431.3 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.5926, allocations: 8 kB / 431.3 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.5927, allocations: 7.188 kB / 431.3 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.5933, allocations: 164.2 kB / 431.5 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.5933, allocations: 4 kB / 431.5 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.5934, allocations: 7.953 kB / 431.5 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.5934, allocations: 3.938 kB / 431.5 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.5937, allocations: 45.42 kB / 431.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.5948, allocations: 485.2 kB / 432 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.5953, allocations: 132.5 kB / 432.2 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.5955, allocations: 61.94 kB / 432.2 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.933e-05/0.5956, allocations: 4 kB / 432.2 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.5959, allocations: 93.78 kB / 432.3 MB, free: 5.504 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 4.618e-06/0.5959, allocations: 0 / 432.3 MB, free: 5.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006319/0.5966, allocations: 141.7 kB / 432.5 MB, free: 5.383 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.5967, allocations: 183.9 kB / 432.6 MB, free: 5.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008054/0.5976, allocations: 298.6 kB / 432.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.533e-05/0.5976, allocations: 28.95 kB / 433 MB, free: 4.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.5978, allocations: 124 kB / 433.1 MB, free: 4.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.5979, allocations: 31.33 kB / 433.1 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/0.5979, allocations: 7.125 kB / 433.1 MB, free: 4.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.5981, allocations: 330.2 kB / 433.4 MB, free: 4.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.5983, allocations: 29.3 kB / 433.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.5986, allocations: 100 kB / 433.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.5988, allocations: 37.98 kB / 433.6 MB, free: 4.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.5988, allocations: 3.938 kB / 433.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005267/0.5994, allocations: 132.5 kB / 433.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.5994, allocations: 8 kB / 433.7 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.5994, allocations: 0 / 433.7 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.5995, allocations: 4.156 kB / 433.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.5998, allocations: 26.67 kB / 433.8 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.5999, allocations: 0 / 433.8 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.6001, allocations: 11.91 kB / 433.8 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.6002, allocations: 10.62 kB / 433.8 MB, free: 4.102 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001582/0.6003, allocations: 111.7 kB / 433.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.6006, allocations: 83.89 kB / 434 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004933/0.6011, allocations: 122 kB / 434.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.6011, allocations: 7.984 kB / 434.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.6012, allocations: 0 / 434.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.6012, allocations: 0 / 434.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005442/0.6017, allocations: 255.5 kB / 434.4 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.6018, allocations: 4 kB / 434.4 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.602, allocations: 12 kB / 434.4 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.6021, allocations: 0 / 434.4 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.6021, allocations: 15.5 kB / 434.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.6022, allocations: 3.938 kB / 434.4 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.6022, allocations: 4 kB / 434.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006514/0.6028, allocations: 220.7 kB / 434.6 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.6032, allocations: 121.6 kB / 434.7 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.652e-05/0.6033, allocations: 11.12 kB / 434.8 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.6035, allocations: 12.05 kB / 434.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.436e-05/0.6036, allocations: 6.812 kB / 434.8 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.6037, allocations: 7.984 kB / 434.8 MB, free: 3.102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000624/0.6043, allocations: 239.5 kB / 435 MB, free: 2.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.6043, allocations: 3.938 kB / 435 MB, free: 2.906 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007417/0.6051, allocations: 54.56 kB / 435.1 MB, free: 2.859 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003054/0.6082, allocations: 1.279 MB / 436.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006042/0.6088, allocations: 97.06 kB / 436.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.6089, allocations: 4.312 kB / 436.4 MB, free: 1.602 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.6091, allocations: 42.73 kB / 436.5 MB, free: 1.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000933/0.6101, allocations: 55.64 kB / 436.5 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.6116, allocations: 375.2 kB / 436.9 MB, free: 1.164 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.6122, allocations: 0.7521 MB / 437.7 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.6124, allocations: 33.67 kB / 437.7 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.6127, allocations: 62.84 kB / 437.8 MB, free: 340 kB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6127, allocations: 0 / 437.8 MB, free: 340 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03692/0.6496, allocations: 4.862 MB / 442.6 MB, free: 11.57 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002924/0.65, allocations: 203.1 kB / 442.8 MB, free: 11.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.686/3.336, allocations: 4 kB / 442.8 MB, free: 11.34 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat