Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.156e-05, allocations: 0 / 292.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1362, allocations: 50.41 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5693, allocations: 76.86 MB / 419.5 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.5696, allocations: 68.72 kB / 419.6 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02469/0.5944, allocations: 3.073 MB / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5944, allocations: 0 / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.5945, allocations: 8 kB / 422.6 MB, free: 14.22 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.001027/0.5955, allocations: 446.9 kB / 423.1 MB, free: 13.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.5956, allocations: 8.031 kB / 423.1 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.5957, allocations: 61.78 kB / 423.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.5958, allocations: 23.72 kB / 423.2 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.5963, allocations: 218 kB / 423.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.5964, allocations: 28.06 kB / 423.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.982e-05/0.5965, allocations: 27.5 kB / 423.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008743/0.5974, allocations: 269.7 kB / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.5974, allocations: 0 / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.5975, allocations: 11.44 kB / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.5975, allocations: 4 kB / 423.7 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00359/0.6011, allocations: 154.9 kB / 423.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.6035, allocations: 0.966 MB / 424.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005405/0.6041, allocations: 172 kB / 425 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.6043, allocations: 72.91 kB / 425.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.6044, allocations: 4.188 kB / 425.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003867/0.6048, allocations: 140.7 kB / 425.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 4.127e-06/0.6048, allocations: 4 kB / 425.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006302/0.6055, allocations: 168.2 kB / 425.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.6056, allocations: 97 kB / 425.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.6058, allocations: 136.5 kB / 425.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-05/0.6058, allocations: 37.39 kB / 425.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.606, allocations: 143.7 kB / 425.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.6061, allocations: 58 kB / 425.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.6062, allocations: 7.562 kB / 425.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.6064, allocations: 326.7 kB / 426.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.6066, allocations: 57.12 kB / 426.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.607, allocations: 138 kB / 426.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.6073, allocations: 69.91 kB / 426.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.6073, allocations: 0 / 426.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007833/0.6081, allocations: 242.8 kB / 426.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.6081, allocations: 8.062 kB / 426.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.6082, allocations: 11.94 kB / 426.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.6082, allocations: 4 kB / 426.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.6085, allocations: 43.25 kB / 426.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.6086, allocations: 4 kB / 426.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.6088, allocations: 19.45 kB / 426.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.6089, allocations: 11.19 kB / 426.8 MB, free: 10.41 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.0001801/0.6091, allocations: 139.1 kB / 426.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.492e-05/0.6091, allocations: 7.906 kB / 426.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006346/0.6098, allocations: 191.7 kB / 427.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.6098, allocations: 7.984 kB / 427.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.6098, allocations: 3.953 kB / 427.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.6098, allocations: 0 / 427.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.6114, allocations: 0.5867 MB / 427.7 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.6114, allocations: 0 / 427.7 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.6116, allocations: 12 kB / 427.7 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/0.6116, allocations: 11.94 kB / 427.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.6117, allocations: 3.625 kB / 427.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.759e-06/0.6117, allocations: 4 kB / 427.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6117, allocations: 3.938 kB / 427.7 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006516/0.6124, allocations: 293.3 kB / 428 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.139e-05/0.6125, allocations: 92.88 kB / 428.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.6126, allocations: 7.5 kB / 428.1 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.6128, allocations: 11.3 kB / 428.1 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.6129, allocations: 23.47 kB / 428.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.613, allocations: 8 kB / 428.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000126/0.6131, allocations: 106.4 kB / 428.3 MB, free: 9 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.52e-07/0.6131, allocations: 0 / 428.3 MB, free: 9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007163/0.6139, allocations: 50.06 kB / 428.3 MB, free: 8.957 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.001435/0.6153, allocations: 0.9059 MB / 429.2 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007/0.6161, allocations: 176.7 kB / 429.4 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.6161, allocations: 0 / 429.4 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.6164, allocations: 86.48 kB / 429.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004389/0.6169, allocations: 18.86 kB / 429.5 MB, free: 7.852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.6183, allocations: 300.6 kB / 429.8 MB, free: 7.562 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.6189, allocations: 0.741 MB / 430.5 MB, free: 6.797 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001908/0.6191, allocations: 22.08 kB / 430.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.6193, allocations: 67.78 kB / 430.6 MB, free: 6.746 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6193, allocations: 0 / 430.6 MB, free: 6.746 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04156/0.6609, allocations: 3.406 MB / 434 MB, free: 3.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000374/0.6614, allocations: 156.1 kB / 434.2 MB, free: 3.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.542/3.203, allocations: 0 / 434.2 MB, free: 3.188 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat