Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.456e-05, allocations: 4 kB / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 47.57 MB / 317 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4796/0.5801, allocations: 75.08 MB / 392.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.5803, allocations: 63.34 kB / 392.2 MB, free: 12.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01166/0.592, allocations: 2.841 MB / 395 MB, free: 10.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.592, allocations: 0 / 395 MB, free: 10.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.5921, allocations: 4.656 kB / 395 MB, free: 10.46 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007428/0.5928, allocations: 438.2 kB / 395.4 MB, free: 10.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.5929, allocations: 11.97 kB / 395.4 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.188e-05/0.593, allocations: 57.59 kB / 395.5 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.934e-05/0.593, allocations: 27.5 kB / 395.5 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.5934, allocations: 229.1 kB / 395.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.5934, allocations: 27.25 kB / 395.8 MB, free: 9.648 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.5935, allocations: 23.25 kB / 395.8 MB, free: 9.633 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.5941, allocations: 229.4 kB / 396 MB, free: 9.469 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.5941, allocations: 0 / 396 MB, free: 9.469 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.5942, allocations: 7.688 kB / 396 MB, free: 9.465 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.5942, allocations: 4 kB / 396 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004537/0.5946, allocations: 155.1 kB / 396.2 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.5961, allocations: 0.6878 MB / 396.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.5965, allocations: 166.3 kB / 397 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.5967, allocations: 82.58 kB / 397.1 MB, free: 8.555 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.5967, allocations: 7.5 kB / 397.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.597, allocations: 114.3 kB / 397.2 MB, free: 8.449 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.895e-06/0.597, allocations: 4 kB / 397.2 MB, free: 8.445 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004518/0.5975, allocations: 162.8 kB / 397.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.5975, allocations: 55.41 kB / 397.4 MB, free: 8.242 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.5977, allocations: 136.2 kB / 397.6 MB, free: 8.113 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.5978, allocations: 41.14 kB / 397.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.5979, allocations: 131.8 kB / 397.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.598, allocations: 62.97 kB / 397.8 MB, free: 7.898 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.769e-05/0.598, allocations: 7.75 kB / 397.8 MB, free: 7.898 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.5981, allocations: 326.6 kB / 398.1 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.5983, allocations: 58.84 kB / 398.2 MB, free: 7.535 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.5986, allocations: 118.4 kB / 398.3 MB, free: 7.422 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.5988, allocations: 71.45 kB / 398.4 MB, free: 7.367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5988, allocations: 0 / 398.4 MB, free: 7.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005279/0.5993, allocations: 228 kB / 398.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5993, allocations: 8 kB / 398.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.5994, allocations: 4.172 kB / 398.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.5994, allocations: 8 kB / 398.6 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.5996, allocations: 27.92 kB / 398.6 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.5997, allocations: 7.984 kB / 398.7 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.5998, allocations: 19.69 kB / 398.7 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.5999, allocations: 8 kB / 398.7 MB, free: 7.109 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.0001333/0.6, allocations: 131.4 kB / 398.8 MB, free: 6.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.6001, allocations: 15.8 kB / 398.8 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004884/0.6006, allocations: 199 kB / 399 MB, free: 6.809 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.6006, allocations: 7.938 kB / 399 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.6006, allocations: 0 / 399 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6006, allocations: 4 kB / 399 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.6017, allocations: 0.5564 MB / 399.6 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.6017, allocations: 7.938 kB / 399.6 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.6019, allocations: 23.92 kB / 399.6 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.6019, allocations: 0 / 399.6 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.6019, allocations: 4 kB / 399.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.6019, allocations: 0 / 399.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.6019, allocations: 0 / 399.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.6024, allocations: 273.4 kB / 399.9 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.6025, allocations: 100.8 kB / 400 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.6025, allocations: 7.938 kB / 400 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.6027, allocations: 11.98 kB / 400 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.366e-05/0.6028, allocations: 19.91 kB / 400 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.6028, allocations: 11.44 kB / 400 MB, free: 5.832 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.276e-05/0.6029, allocations: 95.2 kB / 400.1 MB, free: 5.742 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6029, allocations: 0 / 400.1 MB, free: 5.742 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004332/0.6033, allocations: 39.88 kB / 400.2 MB, free: 5.711 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.0008213/0.6042, allocations: 0.819 MB / 401 MB, free: 4.906 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004668/0.6047, allocations: 166.6 kB / 401.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6047, allocations: 0 / 401.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.6049, allocations: 87.3 kB / 401.2 MB, free: 4.719 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.6052, allocations: 15.5 kB / 401.3 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009144/0.6061, allocations: 298.5 kB / 401.5 MB, free: 4.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.6065, allocations: 0.7401 MB / 402.3 MB, free: 3.664 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.6066, allocations: 26.06 kB / 402.3 MB, free: 3.637 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.6068, allocations: 65.84 kB / 402.4 MB, free: 3.609 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6068, allocations: 0 / 402.4 MB, free: 3.609 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.6311, allocations: 3.305 MB / 405.7 MB, free: 380 kB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/0.6315, allocations: 141.9 kB / 405.8 MB, free: 152 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/3.133, allocations: 4 kB / 405.8 MB, free: 148 kB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat