Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.162/2.162, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.984e-05, allocations: 2.031 kB / 292.7 MB, free: 8.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1295, allocations: 50.41 MB / 343.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5714, allocations: 76.84 MB / 420 MB, free: 1.309 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5717, allocations: 62.84 kB / 420 MB, free: 1.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01283/0.5846, allocations: 3.076 MB / 423.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5846, allocations: 0 / 423.1 MB, free: 14.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.5846, allocations: 4 kB / 423.1 MB, free: 14.6 MB / 346.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.0007871/0.5854, allocations: 445.7 kB / 423.6 MB, free: 14.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.5855, allocations: 8.031 kB / 423.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.584e-05/0.5856, allocations: 63.28 kB / 423.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.57e-05/0.5857, allocations: 27.72 kB / 423.7 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.586, allocations: 216 kB / 423.9 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.5861, allocations: 31.31 kB / 423.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/0.5862, allocations: 26.81 kB / 423.9 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.5868, allocations: 265.2 kB / 424.2 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.5868, allocations: 0 / 424.2 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.5869, allocations: 14.31 kB / 424.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.5869, allocations: 8 kB / 424.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.5874, allocations: 156.6 kB / 424.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.5891, allocations: 0.9581 MB / 425.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004467/0.5896, allocations: 174.3 kB / 425.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.5898, allocations: 77.66 kB / 425.6 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.5898, allocations: 4.172 kB / 425.6 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.5902, allocations: 150.7 kB / 425.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.848e-06/0.5902, allocations: 0 / 425.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000491/0.5907, allocations: 160.3 kB / 425.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.5908, allocations: 92.53 kB / 426 MB, free: 11.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.5909, allocations: 138 kB / 426.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.591, allocations: 40.33 kB / 426.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.5911, allocations: 134.3 kB / 426.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.5912, allocations: 63.55 kB / 426.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.664e-05/0.5912, allocations: 11.22 kB / 426.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5914, allocations: 325.3 kB / 426.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.5916, allocations: 57.12 kB / 426.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.5918, allocations: 132 kB / 426.8 MB, free: 11.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.592, allocations: 75.33 kB / 426.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5921, allocations: 4 kB / 426.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000586/0.5927, allocations: 245.1 kB / 427.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.5927, allocations: 8 kB / 427.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.5927, allocations: 0 / 427.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.5927, allocations: 7.938 kB / 427.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.593, allocations: 39.81 kB / 427.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.5931, allocations: 4 kB / 427.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.5932, allocations: 30.73 kB / 427.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.5933, allocations: 11.44 kB / 427.3 MB, free: 10.78 MB / 346.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001653/0.5935, allocations: 134.6 kB / 427.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.5935, allocations: 11.91 kB / 427.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005068/0.594, allocations: 190.5 kB / 427.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.5941, allocations: 0 / 427.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.5941, allocations: 3.953 kB / 427.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.5941, allocations: 7.984 kB / 427.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.5952, allocations: 0.586 MB / 428.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5953, allocations: 0 / 428.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.5954, allocations: 12 kB / 428.2 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/0.5955, allocations: 3.953 kB / 428.2 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.5955, allocations: 7.734 kB / 428.2 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.401e-06/0.5955, allocations: 4 kB / 428.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.5955, allocations: 3.938 kB / 428.2 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004676/0.596, allocations: 290.1 kB / 428.5 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.965e-05/0.5961, allocations: 92.88 kB / 428.6 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.5961, allocations: 9.25 kB / 428.6 MB, free: 9.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.5963, allocations: 11.36 kB / 428.6 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5964, allocations: 27.91 kB / 428.6 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.5965, allocations: 7.438 kB / 428.6 MB, free: 9.465 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.251e-05/0.5966, allocations: 106.7 kB / 428.8 MB, free: 9.367 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5966, allocations: 0 / 428.8 MB, free: 9.367 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004553/0.597, allocations: 42.44 kB / 428.8 MB, free: 9.332 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000957/0.598, allocations: 0.9113 MB / 429.7 MB, free: 8.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.5986, allocations: 175.7 kB / 429.9 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.5986, allocations: 0 / 429.9 MB, free: 8.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.5988, allocations: 83.73 kB / 430 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.5991, allocations: 16.06 kB / 430 MB, free: 8.227 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.6002, allocations: 313.3 kB / 430.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.6007, allocations: 0.7404 MB / 431 MB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001503/0.6008, allocations: 26.08 kB / 431 MB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.601, allocations: 62.66 kB / 431.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.601, allocations: 0 / 431.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.6273, allocations: 3.406 MB / 434.5 MB, free: 3.777 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002829/0.6276, allocations: 148.1 kB / 434.7 MB, free: 3.559 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.143, allocations: 4.062 kB / 434.7 MB, free: 3.555 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat