Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.246/2.246, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.831e-05, allocations: 1.406 kB / 255.4 MB, free: 2.652 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1199, allocations: 44.52 MB / 300 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.5666, allocations: 71.43 MB / 371.4 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.567, allocations: 63.59 kB / 371.4 MB, free: 21.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01232/0.5793, allocations: 2.924 MB / 374.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5793, allocations: 0 / 374.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.5794, allocations: 6.844 kB / 374.4 MB, free: 21.38 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006376/0.58, allocations: 444.6 kB / 374.8 MB, free: 21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5801, allocations: 9.375 kB / 374.8 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.316e-05/0.5802, allocations: 61.25 kB / 374.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.128e-05/0.5803, allocations: 19.83 kB / 374.9 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.5806, allocations: 232.9 kB / 375.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.5806, allocations: 22 kB / 375.1 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.5807, allocations: 27.89 kB / 375.2 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.5813, allocations: 262 kB / 375.4 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.5813, allocations: 9 kB / 375.4 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.5814, allocations: 9.5 kB / 375.4 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.5814, allocations: 5.688 kB / 375.5 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00044/0.5818, allocations: 163.6 kB / 375.6 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.5832, allocations: 0.9406 MB / 376.6 MB, free: 19.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.5836, allocations: 155.7 kB / 376.7 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.5838, allocations: 74.59 kB / 376.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.5839, allocations: 2.719 kB / 376.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.5841, allocations: 110.8 kB / 376.9 MB, free: 19.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.725e-06/0.5841, allocations: 0 / 376.9 MB, free: 19.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004517/0.5846, allocations: 155.6 kB / 377 MB, free: 19.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.5847, allocations: 56.95 kB / 377.1 MB, free: 19.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.5848, allocations: 147.8 kB / 377.2 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.5849, allocations: 37.36 kB / 377.3 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.177e-05/0.585, allocations: 136.1 kB / 377.4 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.154e-05/0.585, allocations: 58.78 kB / 377.5 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/0.5851, allocations: 8.594 kB / 377.5 MB, free: 19.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.039e-05/0.5851, allocations: 324.1 kB / 377.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.5853, allocations: 59.59 kB / 377.9 MB, free: 19.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.5856, allocations: 134.3 kB / 378 MB, free: 19.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.5858, allocations: 68.89 kB / 378 MB, free: 19.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.5858, allocations: 0 / 378 MB, free: 19.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005555/0.5864, allocations: 252.3 kB / 378.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.5864, allocations: 5.844 kB / 378.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.5864, allocations: 2.938 kB / 378.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.5865, allocations: 3.688 kB / 378.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.5867, allocations: 35.27 kB / 378.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.5867, allocations: 12.67 kB / 378.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.587, allocations: 23.69 kB / 378.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.587, allocations: 13.69 kB / 378.4 MB, free: 19.02 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,SetBoolean1.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.0001068/0.5871, allocations: 133 kB / 378.5 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/0.5872, allocations: 18.11 kB / 378.5 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004796/0.5877, allocations: 184.9 kB / 378.7 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.5877, allocations: 7.469 kB / 378.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.5877, allocations: 0 / 378.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.5877, allocations: 1.922 kB / 378.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009762/0.5887, allocations: 0.5813 MB / 379.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.5887, allocations: 5.859 kB / 379.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.5889, allocations: 17.86 kB / 379.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.5889, allocations: 1.094 kB / 379.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.5889, allocations: 5.531 kB / 379.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.5889, allocations: 1.062 kB / 379.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5889, allocations: 1.156 kB / 379.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.5894, allocations: 282.7 kB / 379.6 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.5894, allocations: 89.17 kB / 379.7 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.5895, allocations: 2.672 kB / 379.7 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.5896, allocations: 8.484 kB / 379.7 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.5897, allocations: 27.12 kB / 379.7 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.5898, allocations: 9.516 kB / 379.8 MB, free: 18.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.567e-05/0.5898, allocations: 98.42 kB / 379.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5899, allocations: 0 / 379.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004356/0.5903, allocations: 45.33 kB / 379.9 MB, free: 18.14 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,SetBoolean1.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.0006977/0.591, allocations: 0.8066 MB / 380.7 MB, free: 17.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005032/0.5915, allocations: 176.5 kB / 380.9 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5916, allocations: 1.312 kB / 380.9 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.5918, allocations: 83.2 kB / 381 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.5921, allocations: 17.25 kB / 381 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009397/0.593, allocations: 293 kB / 381.3 MB, free: 17.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/0.5933, allocations: 0.7407 MB / 382 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.5934, allocations: 23.02 kB / 382 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.5936, allocations: 68.17 kB / 382.1 MB, free: 16.58 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.5936, allocations: 0 / 382.1 MB, free: 16.58 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.6191, allocations: 3.328 MB / 385.4 MB, free: 16.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002765/0.6194, allocations: 166.1 kB / 385.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.656/3.275, allocations: 0 / 385.6 MB, free: 15.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat