Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.117/2.117, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.007e-05, allocations: 0 / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3548, allocations: 44.48 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.4841, allocations: 70.14 MB / 364.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4844, allocations: 63.97 kB / 364.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01137/0.4957, allocations: 2.736 MB / 367.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4958, allocations: 0 / 367.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.4958, allocations: 8 kB / 367.2 MB, free: 8.883 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007799/0.4966, allocations: 430.8 kB / 367.6 MB, free: 8.418 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.4967, allocations: 12.03 kB / 367.6 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.505e-05/0.4968, allocations: 23.72 kB / 367.6 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.4971, allocations: 218.9 kB / 367.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.4972, allocations: 8 kB / 367.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.4973, allocations: 20 kB / 367.9 MB, free: 8.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004569/0.4977, allocations: 144.8 kB / 368 MB, free: 7.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.4982, allocations: 197 kB / 368.2 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.4983, allocations: 0 / 368.2 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.4983, allocations: 4 kB / 368.2 MB, free: 7.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.4983, allocations: 4 kB / 368.2 MB, free: 7.746 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.4997, allocations: 0.6349 MB / 368.8 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.5001, allocations: 163.1 kB / 369 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.5003, allocations: 69.23 kB / 369.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.5004, allocations: 192 / 369.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.5006, allocations: 103.6 kB / 369.2 MB, free: 6.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.615e-06/0.5007, allocations: 4 kB / 369.2 MB, free: 6.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004421/0.5011, allocations: 157.2 kB / 369.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5012, allocations: 55.41 kB / 369.4 MB, free: 6.484 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.5013, allocations: 135.3 kB / 369.5 MB, free: 6.344 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.5014, allocations: 37.69 kB / 369.5 MB, free: 6.301 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.5016, allocations: 124.4 kB / 369.7 MB, free: 6.176 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.5017, allocations: 55.25 kB / 369.7 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.5017, allocations: 4 kB / 369.7 MB, free: 6.117 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.5019, allocations: 322.8 kB / 370 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.5021, allocations: 56.66 kB / 370.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.5024, allocations: 115.8 kB / 370.2 MB, free: 5.598 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.5025, allocations: 65.5 kB / 370.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.5026, allocations: 0 / 370.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005153/0.5031, allocations: 209.3 kB / 370.5 MB, free: 5.324 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.5031, allocations: 7.938 kB / 370.5 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.5031, allocations: 4 kB / 370.5 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.5032, allocations: 4 kB / 370.5 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.5034, allocations: 36.12 kB / 370.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.5034, allocations: 4 kB / 370.5 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.5036, allocations: 15.8 kB / 370.5 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.5037, allocations: 16 kB / 370.6 MB, free: 5.238 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001391/0.5038, allocations: 123.8 kB / 370.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000383/0.5042, allocations: 149.4 kB / 370.8 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.5043, allocations: 11.91 kB / 370.8 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005142/0.5048, allocations: 182.2 kB / 371 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.5048, allocations: 7.953 kB / 371 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5048, allocations: 0 / 371 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5048, allocations: 3.938 kB / 371 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.5059, allocations: 499.4 kB / 371.5 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.506, allocations: 3.984 kB / 371.5 MB, free: 4.215 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.5061, allocations: 19.94 kB / 371.5 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/0.5062, allocations: 3.953 kB / 371.5 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.5062, allocations: 4 kB / 371.5 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.5062, allocations: 3.984 kB / 371.5 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5062, allocations: 0 / 371.5 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004822/0.5067, allocations: 263.4 kB / 371.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.419e-05/0.5068, allocations: 88.95 kB / 371.9 MB, free: 3.805 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.5068, allocations: 7.938 kB / 371.9 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.507, allocations: 8 kB / 371.9 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5071, allocations: 23.97 kB / 371.9 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.5071, allocations: 7.984 kB / 371.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.059e-05/0.5072, allocations: 91.28 kB / 372 MB, free: 3.668 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5072, allocations: 3.938 kB / 372 MB, free: 3.664 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004745/0.5077, allocations: 35.98 kB / 372.1 MB, free: 3.629 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0009003/0.5086, allocations: 0.7942 MB / 372.9 MB, free: 2.805 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004612/0.5091, allocations: 151.9 kB / 373 MB, free: 2.656 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5091, allocations: 0 / 373 MB, free: 2.656 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.5094, allocations: 84.3 kB / 373.1 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.5097, allocations: 12.8 kB / 373.1 MB, free: 2.562 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000969/0.5107, allocations: 267.9 kB / 373.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.5111, allocations: 0.74 MB / 374.1 MB, free: 1.504 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.5113, allocations: 34.06 kB / 374.1 MB, free: 1.473 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.5115, allocations: 59.41 kB / 374.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5115, allocations: 0 / 374.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07456/0.586, allocations: 2.968 MB / 377.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003233/0.5864, allocations: 134.7 kB / 377.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/3.206, allocations: 0 / 377.3 MB, free: 14.27 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat