Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.795/1.795, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.471e-05/3.48e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.388, allocations: 66.13 MB / 329.9 MB, free: 7.645 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.3883, allocations: 63.97 kB / 330 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01221/0.4005, allocations: 2.946 MB / 332.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4006, allocations: 0 / 332.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.4006, allocations: 8 kB / 333 MB, free: 4.605 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.0007793/0.4014, allocations: 455.8 kB / 333.4 MB, free: 4.113 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4015, allocations: 8.031 kB / 333.4 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.921e-05/0.4016, allocations: 54.55 kB / 333.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.4017, allocations: 23.72 kB / 333.5 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.402, allocations: 222.8 kB / 333.7 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.4021, allocations: 24.56 kB / 333.7 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.4022, allocations: 24 kB / 333.7 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.4028, allocations: 270 kB / 334 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.4028, allocations: 0 / 334 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.4029, allocations: 12 kB / 334 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.4029, allocations: 4 kB / 334 MB, free: 3.414 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.4034, allocations: 161.6 kB / 334.2 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.4051, allocations: 0.9562 MB / 335.1 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.4055, allocations: 145.7 kB / 335.3 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.4058, allocations: 73.31 kB / 335.4 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.4058, allocations: 192 / 335.4 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.4061, allocations: 119.5 kB / 335.5 MB, free: 1.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.846e-06/0.4061, allocations: 0 / 335.5 MB, free: 1.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004846/0.4066, allocations: 157.4 kB / 335.6 MB, free: 1.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.4067, allocations: 63.34 kB / 335.7 MB, free: 1.641 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.4069, allocations: 137.1 kB / 335.8 MB, free: 1.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/0.4069, allocations: 33.7 kB / 335.9 MB, free: 1.461 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.4071, allocations: 222.6 kB / 336.1 MB, free: 1.242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.4072, allocations: 55.34 kB / 336.1 MB, free: 1.188 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.027e-05/0.4073, allocations: 8 kB / 336.1 MB, free: 1.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4074, allocations: 322.8 kB / 336.5 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.4076, allocations: 56.66 kB / 336.5 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.4079, allocations: 133.9 kB / 336.6 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.4081, allocations: 71.89 kB / 336.7 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.4081, allocations: 0 / 336.7 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005943/0.4087, allocations: 245.2 kB / 336.9 MB, free: 328 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4088, allocations: 8 kB / 337 MB, free: 320 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4088, allocations: 0 / 337 MB, free: 320 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.4088, allocations: 7.938 kB / 337 MB, free: 312 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.4091, allocations: 39.88 kB / 337 MB, free: 272 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.4091, allocations: 7.938 kB / 337 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001713/0.4093, allocations: 20.19 kB / 337 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.4094, allocations: 19.98 kB / 337 MB, free: 224 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.0001458/0.4095, allocations: 135.4 kB / 337.2 MB, free: 84 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.4096, allocations: 11.89 kB / 337.2 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005451/0.4101, allocations: 186.4 kB / 337.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4101, allocations: 4 kB / 337.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4102, allocations: 3.953 kB / 337.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4102, allocations: 3.984 kB / 337.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.4113, allocations: 0.5719 MB / 338 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4114, allocations: 0 / 338 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.4115, allocations: 19.92 kB / 338 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.436e-05/0.4115, allocations: 7.953 kB / 338 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.4116, allocations: 7.938 kB / 338 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4116, allocations: 0 / 338 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.4116, allocations: 0 / 338 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004529/0.412, allocations: 279.7 kB / 338.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.144e-05/0.4121, allocations: 88.92 kB / 338.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.4122, allocations: 7.953 kB / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.4123, allocations: 4 kB / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.814e-05/0.4124, allocations: 27.95 kB / 338.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.4125, allocations: 4 kB / 338.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001158/0.4126, allocations: 102.3 kB / 338.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4126, allocations: 4 kB / 338.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007327/0.4134, allocations: 47.98 kB / 338.5 MB, free: 14.62 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.001158/0.4146, allocations: 0.8096 MB / 339.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007072/0.4153, allocations: 176.5 kB / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4153, allocations: 0 / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.4156, allocations: 75.88 kB / 339.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.416, allocations: 23.94 kB / 339.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.4173, allocations: 314.5 kB / 339.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.4178, allocations: 0.7404 MB / 340.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.4181, allocations: 67.41 kB / 340.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.232e-06/0.4181, allocations: 3.938 kB / 340.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.628/3.046, allocations: 3.046 MB / 343.8 MB, free: 9.281 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat