Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.222/2.222, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.217e-05/4.23e-05, allocations: 4 kB / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 50.41 MB / 342.6 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5576, allocations: 80.85 MB / 423.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5579, allocations: 66.28 kB / 423.5 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02666/0.5846, allocations: 5.824 MB / 429.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5846, allocations: 4 kB / 429.4 MB, free: 8.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.5847, allocations: 4 kB / 429.4 MB, free: 8.426 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008965/0.5856, allocations: 497.6 kB / 429.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.5856, allocations: 8.031 kB / 429.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.488e-05/0.5857, allocations: 37.81 kB / 429.9 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.938e-05/0.5858, allocations: 23.77 kB / 429.9 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.5863, allocations: 267.5 kB / 430.2 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.5864, allocations: 0 / 430.2 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.5864, allocations: 7.688 kB / 430.2 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.5867, allocations: 110.5 kB / 430.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5867, allocations: 0 / 430.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.5867, allocations: 15.56 kB / 430.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.5868, allocations: 3.953 kB / 430.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.5869, allocations: 43.17 kB / 430.4 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008534/0.5878, allocations: 0.6143 MB / 431 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.5881, allocations: 118.3 kB / 431.1 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.5882, allocations: 45.45 kB / 431.1 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.5882, allocations: 7.547 kB / 431.2 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.5885, allocations: 121.7 kB / 431.3 MB, free: 6.465 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.675e-06/0.5885, allocations: 0 / 431.3 MB, free: 6.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004141/0.5889, allocations: 135.3 kB / 431.4 MB, free: 6.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.5891, allocations: 135.5 kB / 431.5 MB, free: 6.188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.5895, allocations: 259.9 kB / 431.8 MB, free: 5.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.5896, allocations: 33.39 kB / 431.8 MB, free: 5.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.5897, allocations: 121.4 kB / 431.9 MB, free: 5.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.5897, allocations: 34.83 kB / 432 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.049e-05/0.5898, allocations: 3.5 kB / 432 MB, free: 5.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.5899, allocations: 330.6 kB / 432.3 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.086e-05/0.59, allocations: 26.38 kB / 432.3 MB, free: 5.469 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.5902, allocations: 80.62 kB / 432.4 MB, free: 5.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.825e-05/0.5903, allocations: 31.11 kB / 432.4 MB, free: 5.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5903, allocations: 0 / 432.4 MB, free: 5.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003168/0.5906, allocations: 133.5 kB / 432.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.5907, allocations: 12.08 kB / 432.6 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.5907, allocations: 4 kB / 432.6 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5907, allocations: 0 / 432.6 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.5909, allocations: 12 kB / 432.6 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.5909, allocations: 11.92 kB / 432.6 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.5911, allocations: 11.31 kB / 432.6 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.5911, allocations: 7.984 kB / 432.6 MB, free: 5.191 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: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001083/0.5913, allocations: 120.2 kB / 432.7 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.927e-05/0.5913, allocations: 19.72 kB / 432.8 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003002/0.5916, allocations: 116.6 kB / 432.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5917, allocations: 0 / 432.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.5917, allocations: 4 kB / 432.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.5917, allocations: 0 / 432.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003309/0.592, allocations: 255.3 kB / 433.1 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5921, allocations: 192 / 433.1 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/0.5921, allocations: 12 kB / 433.1 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.5921, allocations: 0 / 433.1 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.5922, allocations: 11.19 kB / 433.1 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.5922, allocations: 7.938 kB / 433.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.5922, allocations: 0 / 433.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.5926, allocations: 197.6 kB / 433.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.5927, allocations: 111.9 kB / 433.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.5928, allocations: 7.938 kB / 433.5 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.593, allocations: 11.98 kB / 433.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.976e-05/0.5931, allocations: 19.59 kB / 433.5 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.5931, allocations: 7.938 kB / 433.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003197/0.5934, allocations: 206.4 kB / 433.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5935, allocations: 0 / 433.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004019/0.5939, allocations: 39.88 kB / 433.7 MB, free: 4.094 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001824/0.5957, allocations: 1.192 MB / 434.9 MB, free: 3.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003504/0.5961, allocations: 80.55 kB / 435 MB, free: 2.957 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.5961, allocations: 7.562 kB / 435 MB, free: 2.953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.5963, allocations: 48 kB / 435.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.5968, allocations: 47.83 kB / 435.1 MB, free: 2.883 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.5979, allocations: 331.2 kB / 435.4 MB, free: 2.555 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.5984, allocations: 0.7393 MB / 436.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.5985, allocations: 21.55 kB / 436.2 MB, free: 1.773 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.5987, allocations: 55.05 kB / 436.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5987, allocations: 0 / 436.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.6252, allocations: 4.563 MB / 440.8 MB, free: 13.28 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002842/0.6256, allocations: 198.9 kB / 441 MB, free: 13.05 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.336, allocations: 0 / 441 MB, free: 13.05 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat