Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.716/1.716, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.859e-05/3.875e-05, allocations: 4 kB / 225.1 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2592, allocations: 38.77 MB / 263.8 MB, free: 9.727 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.3767, allocations: 66.11 MB / 330 MB, free: 7.508 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.377, allocations: 63.97 kB / 330 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01203/0.3891, allocations: 2.946 MB / 333 MB, free: 4.477 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3892, allocations: 0 / 333 MB, free: 4.477 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.456e-05/0.3892, allocations: 4.875 kB / 333 MB, free: 4.473 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.00072/0.3899, allocations: 451 kB / 333.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.39, allocations: 8.031 kB / 333.4 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.233e-05/0.3901, allocations: 62.53 kB / 333.5 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.3902, allocations: 23.72 kB / 333.5 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.3905, allocations: 218.8 kB / 333.7 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.72e-05/0.3906, allocations: 24.55 kB / 333.7 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.3907, allocations: 28 kB / 333.8 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006177/0.3913, allocations: 262 kB / 334 MB, free: 3.297 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3913, allocations: 7.938 kB / 334 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.3914, allocations: 8 kB / 334 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3914, allocations: 8 kB / 334 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.3919, allocations: 165.6 kB / 334.2 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.3935, allocations: 0.9523 MB / 335.2 MB, free: 2.086 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.3939, allocations: 143.4 kB / 335.3 MB, free: 1.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.3941, allocations: 81.19 kB / 335.4 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3942, allocations: 8.188 kB / 335.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.3944, allocations: 107.6 kB / 335.5 MB, free: 1.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.647e-06/0.3945, allocations: 0 / 335.5 MB, free: 1.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004728/0.3949, allocations: 158.8 kB / 335.6 MB, free: 1.57 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.395, allocations: 55.41 kB / 335.7 MB, free: 1.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.3952, allocations: 147.9 kB / 335.8 MB, free: 1.355 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.3952, allocations: 41.69 kB / 335.9 MB, free: 1.309 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3954, allocations: 144.2 kB / 336 MB, free: 1.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.583e-05/0.3955, allocations: 55.34 kB / 336.1 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.3955, allocations: 11.94 kB / 336.1 MB, free: 1.098 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3957, allocations: 330.8 kB / 336.4 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.3959, allocations: 56.66 kB / 336.5 MB, free: 0.707 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.3961, allocations: 133.9 kB / 336.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.3963, allocations: 71.89 kB / 336.7 MB, free: 488 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3963, allocations: 4 kB / 336.7 MB, free: 484 kB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005745/0.3969, allocations: 237.2 kB / 336.9 MB, free: 240 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.397, allocations: 9.719 kB / 336.9 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.397, allocations: 0 / 336.9 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.397, allocations: 4 kB / 336.9 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.3973, allocations: 39.86 kB / 337 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.3973, allocations: 4.281 kB / 337 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.3975, allocations: 23.91 kB / 337 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.3976, allocations: 8 kB / 337 MB, free: 152 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,greaterEqual.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.0001431/0.3978, allocations: 139.9 kB / 337.1 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-05/0.3978, allocations: 15.86 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005321/0.3984, allocations: 186.2 kB / 337.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3984, allocations: 4 kB / 337.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.3984, allocations: 7.953 kB / 337.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3984, allocations: 0 / 337.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.3996, allocations: 0.572 MB / 337.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.3996, allocations: 0 / 337.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.3998, allocations: 23.88 kB / 337.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.2e-05/0.3998, allocations: 7.953 kB / 337.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.3998, allocations: 11.92 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3998, allocations: 4 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3999, allocations: 0 / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004479/0.4003, allocations: 267.6 kB / 338.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.4004, allocations: 89.02 kB / 338.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.4004, allocations: 11.94 kB / 338.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.4006, allocations: 8 kB / 338.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.165e-05/0.4007, allocations: 19.91 kB / 338.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.4007, allocations: 19.98 kB / 338.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.494e-05/0.4008, allocations: 98.31 kB / 338.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4008, allocations: 0 / 338.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004301/0.4013, allocations: 43.91 kB / 338.5 MB, free: 14.53 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,greaterEqual.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.0008331/0.4021, allocations: 0.8058 MB / 339.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004796/0.4026, allocations: 180.1 kB / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4027, allocations: 0 / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.4029, allocations: 79.92 kB / 339.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.4031, allocations: 19.94 kB / 339.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009229/0.4041, allocations: 296.8 kB / 339.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.4045, allocations: 0.7408 MB / 340.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.4046, allocations: 30.06 kB / 340.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.4048, allocations: 67.34 kB / 340.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of SimCode: time 7.32e-07/0.4048, allocations: 0 / 340.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03329/0.4381, allocations: 3.374 MB / 344.1 MB, free: 8.93 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002911/0.4385, allocations: 155.8 kB / 344.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.293/2.731, allocations: 0 / 344.2 MB, free: 8.707 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat