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.799/1.799, allocations: 171.2 MB / 178.8 MB, free: 8.203 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.685e-05/2.698e-05, allocations: 4 kB / 219.6 MB, free: 11.37 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.09099, allocations: 38.76 MB / 258.3 MB, free: 4.543 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.4753, allocations: 65.8 MB / 324.1 MB, free: 5.805 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003531/0.4757, allocations: 63.28 kB / 324.2 MB, free: 5.773 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01937/0.4951, allocations: 2.897 MB / 327.1 MB, free: 3.293 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.814e-06/0.4951, allocations: 0 / 327.1 MB, free: 3.293 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.4952, allocations: 8.812 kB / 327.1 MB, free: 3.285 MB / 266.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.001003/0.4962, allocations: 446.7 kB / 327.5 MB, free: 2.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.874e-05/0.4963, allocations: 12.02 kB / 327.5 MB, free: 2.809 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.4964, allocations: 27.59 kB / 327.6 MB, free: 2.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.4969, allocations: 217.9 kB / 327.8 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.188e-05/0.497, allocations: 11.98 kB / 327.8 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.981e-05/0.4971, allocations: 16 kB / 327.8 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006771/0.4978, allocations: 158.5 kB / 327.9 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007548/0.4986, allocations: 226.7 kB / 328.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.4986, allocations: 0 / 328.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.4987, allocations: 0 / 328.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.4987, allocations: 4 kB / 328.2 MB, free: 2.215 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002244/0.501, allocations: 0.9006 MB / 329.1 MB, free: 1.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.5015, allocations: 143.1 kB / 329.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.5018, allocations: 64.73 kB / 329.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.5019, allocations: 192 / 329.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.5022, allocations: 102.6 kB / 329.4 MB, free: 1.125 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 3.887e-06/0.5023, allocations: 0 / 329.4 MB, free: 1.125 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006238/0.5029, allocations: 150.6 kB / 329.5 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.503, allocations: 55.41 kB / 329.6 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.5032, allocations: 143.3 kB / 329.7 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-05/0.5033, allocations: 36.94 kB / 329.8 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.5035, allocations: 208.2 kB / 330 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.5036, allocations: 56.72 kB / 330 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.5037, allocations: 0 / 330 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.5039, allocations: 322.8 kB / 330.3 MB, free: 200 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.5041, allocations: 58.08 kB / 330.4 MB, free: 160 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.5045, allocations: 125.5 kB / 330.5 MB, free: 32 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.5048, allocations: 64.7 kB / 330.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.5048, allocations: 0 / 330.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000826/0.5057, allocations: 213.5 kB / 330.8 MB, free: 15.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.5057, allocations: 4 kB / 330.8 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.5058, allocations: 7.938 kB / 330.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.064e-05/0.5058, allocations: 4 kB / 330.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.5062, allocations: 35.8 kB / 330.8 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.5062, allocations: 4 kB / 330.8 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.5065, allocations: 15.84 kB / 330.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.249e-05/0.5066, allocations: 12 kB / 330.9 MB, free: 15.72 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,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.0001944/0.5068, allocations: 131.5 kB / 331 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005215/0.5074, allocations: 146 kB / 331.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.625e-05/0.5074, allocations: 15.75 kB / 331.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006754/0.5081, allocations: 171.8 kB / 331.3 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.5082, allocations: 4 kB / 331.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.5082, allocations: 3.953 kB / 331.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.5082, allocations: 3.984 kB / 331.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.5098, allocations: 0.5188 MB / 331.8 MB, free: 14.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.5099, allocations: 4 kB / 331.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.5101, allocations: 15.94 kB / 331.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.568e-05/0.5102, allocations: 3.953 kB / 331.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.52e-05/0.5102, allocations: 11.17 kB / 331.9 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.5102, allocations: 0 / 331.9 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.5103, allocations: 0 / 331.9 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.5109, allocations: 252.6 kB / 332.1 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.058e-05/0.511, allocations: 88.92 kB / 332.2 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.5111, allocations: 11.94 kB / 332.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.5114, allocations: 0 / 332.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.5115, allocations: 23.09 kB / 332.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.5116, allocations: 4 kB / 332.2 MB, free: 14.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.5117, allocations: 107 kB / 332.4 MB, free: 14.31 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.5117, allocations: 0 / 332.4 MB, free: 14.31 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006834/0.5124, allocations: 36 kB / 332.4 MB, free: 14.27 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,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.001172/0.5136, allocations: 0.7882 MB / 333.2 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006637/0.5143, allocations: 160.4 kB / 333.3 MB, free: 13.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.5144, allocations: 0.5625 kB / 333.3 MB, free: 13.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.5146, allocations: 79.05 kB / 333.4 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.5151, allocations: 15.14 kB / 333.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.5165, allocations: 295.6 kB / 333.7 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.517, allocations: 0.7432 MB / 334.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.5173, allocations: 65.03 kB / 334.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.843e-06/0.5173, allocations: 4 kB / 334.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.405/2.923, allocations: 3.044 MB / 337.6 MB, free: 9.18 MB / 282.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