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.782/1.782, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.905e-05, allocations: 4 kB / 219.6 MB, free: 6.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2711, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1194/0.3905, allocations: 65.47 MB / 323.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3907, allocations: 67.97 kB / 323.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01221/0.403, allocations: 2.877 MB / 326.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.403, allocations: 0 / 326.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.403, allocations: 4 kB / 326.7 MB, free: 9.371 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.000764/0.4038, allocations: 444.2 kB / 327.2 MB, free: 8.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.4039, allocations: 8.031 kB / 327.2 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.823e-05/0.404, allocations: 23.72 kB / 327.2 MB, free: 8.863 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.4043, allocations: 222.9 kB / 327.4 MB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.4044, allocations: 8 kB / 327.4 MB, free: 8.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.4044, allocations: 24 kB / 327.5 MB, free: 8.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004577/0.4049, allocations: 153 kB / 327.6 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.4055, allocations: 217 kB / 327.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.4055, allocations: 0 / 327.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.4056, allocations: 8 kB / 327.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.4056, allocations: 4 kB / 327.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.4072, allocations: 0.8896 MB / 328.7 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.4076, allocations: 139.1 kB / 328.9 MB, free: 7.082 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.4078, allocations: 69.17 kB / 328.9 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.4079, allocations: 8.188 kB / 328.9 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.4082, allocations: 103.5 kB / 329 MB, free: 6.891 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.176e-06/0.4082, allocations: 0 / 329 MB, free: 6.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004562/0.4087, allocations: 149.2 kB / 329.2 MB, free: 6.738 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.4087, allocations: 63.34 kB / 329.2 MB, free: 6.664 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.4089, allocations: 147.4 kB / 329.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.409, allocations: 29.7 kB / 329.4 MB, free: 6.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.4091, allocations: 144.3 kB / 329.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.072e-05/0.4092, allocations: 51.27 kB / 329.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.4092, allocations: 0 / 329.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4094, allocations: 330.8 kB / 329.9 MB, free: 5.949 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.4095, allocations: 52.66 kB / 330 MB, free: 5.895 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.4098, allocations: 121.6 kB / 330.1 MB, free: 5.746 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.41, allocations: 59.91 kB / 330.2 MB, free: 5.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.41, allocations: 0 / 330.2 MB, free: 5.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005566/0.4106, allocations: 217.2 kB / 330.4 MB, free: 5.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.4106, allocations: 8 kB / 330.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4106, allocations: 0 / 330.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.4107, allocations: 4 kB / 330.4 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.4109, allocations: 35.92 kB / 330.4 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.4109, allocations: 7.984 kB / 330.4 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.4111, allocations: 16.12 kB / 330.4 MB, free: 5.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/0.4112, allocations: 15.95 kB / 330.5 MB, free: 5.383 MB / 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.0001371/0.4113, allocations: 121.4 kB / 330.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003541/0.4117, allocations: 145.4 kB / 330.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.4117, allocations: 23.8 kB / 330.7 MB, free: 5.086 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.4122, allocations: 166.2 kB / 330.9 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4123, allocations: 7.984 kB / 330.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4123, allocations: 3.953 kB / 330.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.4123, allocations: 4 kB / 330.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.4134, allocations: 0.5139 MB / 331.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.4134, allocations: 0 / 331.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.4135, allocations: 23.92 kB / 331.5 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.4136, allocations: 0 / 331.5 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.4136, allocations: 7.953 kB / 331.5 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.4136, allocations: 0 / 331.5 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4136, allocations: 7.938 kB / 331.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000456/0.4141, allocations: 247.3 kB / 331.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.555e-05/0.4142, allocations: 92.91 kB / 331.8 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.4142, allocations: 3.938 kB / 331.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.4144, allocations: 7.953 kB / 331.8 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-05/0.4145, allocations: 27.95 kB / 331.8 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.4145, allocations: 4 kB / 331.8 MB, free: 3.891 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.873e-05/0.4146, allocations: 95.28 kB / 331.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4146, allocations: 3.938 kB / 331.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004794/0.4151, allocations: 32 kB / 332 MB, free: 3.762 MB / 282.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.0008639/0.416, allocations: 0.791 MB / 332.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.4165, allocations: 163.8 kB / 332.9 MB, free: 2.785 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4165, allocations: 0 / 332.9 MB, free: 2.785 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.4167, allocations: 71.94 kB / 333 MB, free: 2.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.417, allocations: 15.94 kB / 333 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.418, allocations: 267 kB / 333.3 MB, free: 2.398 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.4185, allocations: 0.7444 MB / 334 MB, free: 1.629 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.4187, allocations: 30.06 kB / 334 MB, free: 1.602 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.4189, allocations: 63.42 kB / 334.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4189, allocations: 0 / 334.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03753/0.4564, allocations: 3.015 MB / 337.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.4567, allocations: 145.2 kB / 337.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.861, allocations: 0 / 337.3 MB, free: 14.34 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