Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 183.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.718e-05/3.738e-05, allocations: 4 kB / 225.1 MB, free: 2.152 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2531, allocations: 38.77 MB / 263.8 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.3707, allocations: 66.13 MB / 330 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.371, allocations: 67.97 kB / 330 MB, free: 7.523 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01194/0.3829, allocations: 2.931 MB / 333 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.383, allocations: 4 kB / 333 MB, free: 4.566 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.944e-05/0.383, allocations: 4 kB / 333 MB, free: 4.562 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007062/0.3837, allocations: 439.9 kB / 333.4 MB, free: 4.086 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.3838, allocations: 12.03 kB / 333.4 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.37e-05/0.3839, allocations: 54.55 kB / 333.5 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.865e-05/0.384, allocations: 27.72 kB / 333.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.3843, allocations: 222.8 kB / 333.7 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.3844, allocations: 16.56 kB / 333.7 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.243e-05/0.3844, allocations: 35.98 kB / 333.8 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.3851, allocations: 254 kB / 334 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.3851, allocations: 7.938 kB / 334 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.3851, allocations: 8 kB / 334 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3852, allocations: 8 kB / 334 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004519/0.3856, allocations: 161.6 kB / 334.2 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.3873, allocations: 0.9445 MB / 335.1 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.3877, allocations: 151.3 kB / 335.3 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.3879, allocations: 81.2 kB / 335.4 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3879, allocations: 4.172 kB / 335.4 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002558/0.3882, allocations: 119.4 kB / 335.5 MB, free: 1.832 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.866e-06/0.3882, allocations: 0 / 335.5 MB, free: 1.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004556/0.3887, allocations: 157.4 kB / 335.6 MB, free: 1.672 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.3887, allocations: 55.41 kB / 335.7 MB, free: 1.605 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.3889, allocations: 148.6 kB / 335.8 MB, free: 1.453 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.3889, allocations: 37.7 kB / 335.9 MB, free: 1.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3891, allocations: 140.3 kB / 336 MB, free: 1.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.366e-05/0.3892, allocations: 59.25 kB / 336.1 MB, free: 1.211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.886e-05/0.3892, allocations: 4 kB / 336.1 MB, free: 1.207 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3893, allocations: 326.8 kB / 336.4 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.3895, allocations: 56.66 kB / 336.5 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.3898, allocations: 137.9 kB / 336.6 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.39, allocations: 67.91 kB / 336.7 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.39, allocations: 3.984 kB / 336.7 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005634/0.3906, allocations: 237.2 kB / 336.9 MB, free: 356 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3906, allocations: 8 kB / 336.9 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3906, allocations: 0 / 336.9 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.3907, allocations: 4 kB / 336.9 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.3909, allocations: 36.2 kB / 336.9 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.391, allocations: 15.89 kB / 337 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.3911, allocations: 27.83 kB / 337 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.3912, allocations: 8 kB / 337 MB, free: 256 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001321/0.3913, allocations: 136 kB / 337.1 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.3914, allocations: 7.906 kB / 337.1 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004956/0.3919, allocations: 182.3 kB / 337.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.3919, allocations: 8 kB / 337.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3919, allocations: 0 / 337.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.3919, allocations: 7.938 kB / 337.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.393, allocations: 0.5758 MB / 337.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.393, allocations: 0 / 337.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.3932, allocations: 23.92 kB / 337.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/0.3932, allocations: 3.953 kB / 337.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.3932, allocations: 7.938 kB / 337.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3932, allocations: 4 kB / 337.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3932, allocations: 0 / 337.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004262/0.3937, allocations: 275.6 kB / 338.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.3937, allocations: 85.02 kB / 338.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.3938, allocations: 15.89 kB / 338.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.394, allocations: 11.98 kB / 338.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.3941, allocations: 15.97 kB / 338.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.3941, allocations: 12 kB / 338.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.66e-05/0.3942, allocations: 95.27 kB / 338.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.3942, allocations: 0 / 338.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004089/0.3947, allocations: 44 kB / 338.5 MB, free: 14.65 MB / 298.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008784/0.3956, allocations: 0.8174 MB / 339.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.3961, allocations: 172 kB / 339.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3961, allocations: 0 / 339.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.3963, allocations: 75.94 kB / 339.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.3966, allocations: 29.75 kB / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009454/0.3975, allocations: 289.9 kB / 339.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.398, allocations: 0.7442 MB / 340.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.3981, allocations: 26.08 kB / 340.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.3983, allocations: 63.41 kB / 340.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of SimCode: time 3.136e-06/0.3983, allocations: 0 / 340.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.4315, allocations: 3.344 MB / 344 MB, free: 9.086 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002626/0.4318, allocations: 156.3 kB / 344.2 MB, free: 8.859 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/2.833, allocations: 0 / 344.2 MB, free: 8.859 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat