Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.657e-05, allocations: 0 / 269.4 MB, free: 6.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09969/0.09977, allocations: 47.58 MB / 317 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.5792, allocations: 75.71 MB / 392.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.5795, allocations: 65.03 kB / 392.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01818/0.5977, allocations: 2.998 MB / 395.8 MB, free: 9.312 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5978, allocations: 0 / 395.8 MB, free: 9.312 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.678e-05/0.5978, allocations: 4.656 kB / 395.8 MB, free: 9.309 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001013/0.5989, allocations: 454.5 kB / 396.2 MB, free: 8.828 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.5989, allocations: 8.031 kB / 396.2 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.5991, allocations: 65.16 kB / 396.3 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.5992, allocations: 23.72 kB / 396.3 MB, free: 8.738 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.5997, allocations: 220.6 kB / 396.5 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.5998, allocations: 19.81 kB / 396.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.38e-05/0.5999, allocations: 30.69 kB / 396.6 MB, free: 8.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000908/0.6008, allocations: 258.2 kB / 396.8 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.6009, allocations: 4 kB / 396.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.601, allocations: 14.3 kB / 396.9 MB, free: 8.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.601, allocations: 11.98 kB / 396.9 MB, free: 8.246 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006836/0.6017, allocations: 150.6 kB / 397 MB, free: 8.148 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.6041, allocations: 0.967 MB / 398 MB, free: 7.238 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.6048, allocations: 147 kB / 398.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.6051, allocations: 73.73 kB / 398.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.6051, allocations: 0.875 kB / 398.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/0.6055, allocations: 110 kB / 398.3 MB, free: 6.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.869e-06/0.6056, allocations: 0 / 398.3 MB, free: 6.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006843/0.6063, allocations: 164 kB / 398.5 MB, free: 6.844 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.6064, allocations: 59.39 kB / 398.5 MB, free: 6.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.6066, allocations: 148.7 kB / 398.7 MB, free: 6.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.947e-05/0.6067, allocations: 41.39 kB / 398.7 MB, free: 6.598 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.6069, allocations: 147.7 kB / 398.9 MB, free: 6.461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.607, allocations: 58.36 kB / 398.9 MB, free: 6.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/0.6071, allocations: 7.875 kB / 398.9 MB, free: 6.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.6073, allocations: 326.4 kB / 399.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.6076, allocations: 63.59 kB / 399.3 MB, free: 6.043 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.608, allocations: 124.6 kB / 399.4 MB, free: 5.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.6084, allocations: 71.39 kB / 399.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.6084, allocations: 3.953 kB / 399.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008832/0.6093, allocations: 239.6 kB / 399.7 MB, free: 5.664 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.6093, allocations: 8 kB / 399.7 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.6094, allocations: 0 / 399.7 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.6094, allocations: 4 kB / 399.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.6098, allocations: 39.23 kB / 399.8 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.6098, allocations: 4 kB / 399.8 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.6101, allocations: 15.59 kB / 399.8 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.96e-05/0.6101, allocations: 20.14 kB / 399.8 MB, free: 5.586 MB / 314.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.0001899/0.6104, allocations: 135.5 kB / 400 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/0.6104, allocations: 15.77 kB / 400 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007181/0.6112, allocations: 183.1 kB / 400.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.6112, allocations: 4 kB / 400.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.6112, allocations: 3.938 kB / 400.2 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.6113, allocations: 3.984 kB / 400.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.6128, allocations: 0.5755 MB / 400.7 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.6128, allocations: 0 / 400.7 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.613, allocations: 23.8 kB / 400.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.425e-05/0.6131, allocations: 4 kB / 400.8 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.6131, allocations: 4 kB / 400.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.6131, allocations: 0 / 400.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6132, allocations: 0 / 400.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006401/0.6138, allocations: 277.9 kB / 401 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.251e-05/0.6139, allocations: 96.8 kB / 401.1 MB, free: 4.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.747e-05/0.614, allocations: 3.938 kB / 401.1 MB, free: 4.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.6142, allocations: 11.73 kB / 401.1 MB, free: 4.336 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.6144, allocations: 23.66 kB / 401.2 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.6144, allocations: 4 kB / 401.2 MB, free: 4.312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.6146, allocations: 102.6 kB / 401.3 MB, free: 4.219 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.6146, allocations: 0 / 401.3 MB, free: 4.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007665/0.6154, allocations: 47.38 kB / 401.3 MB, free: 4.18 MB / 314.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.001134/0.6165, allocations: 0.8237 MB / 402.1 MB, free: 3.367 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006897/0.6172, allocations: 167 kB / 402.3 MB, free: 3.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.6173, allocations: 4.812 kB / 402.3 MB, free: 3.242 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.6176, allocations: 79 kB / 402.4 MB, free: 3.184 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.618, allocations: 18.44 kB / 402.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.6195, allocations: 294.4 kB / 402.7 MB, free: 2.898 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.62, allocations: 0.7404 MB / 403.4 MB, free: 2.133 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000223/0.6203, allocations: 26.06 kB / 403.5 MB, free: 2.105 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.6205, allocations: 57.48 kB / 403.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of SimCode: time 1.684e-06/0.6205, allocations: 0 / 403.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.65, allocations: 3.384 MB / 406.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003258/0.6504, allocations: 159.4 kB / 407.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/3.143, allocations: 4 kB / 407.1 MB, free: 14.54 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat