Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.033e-05, allocations: 0 / 225.1 MB, free: 2.23 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2564, allocations: 38.78 MB / 263.8 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1148/0.3713, allocations: 65.48 MB / 329.3 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.3716, allocations: 59.97 kB / 329.4 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01121/0.3828, allocations: 2.789 MB / 332.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3829, allocations: 0 / 332.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.3829, allocations: 12 kB / 332.2 MB, free: 5.336 MB / 282.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.0007386/0.3836, allocations: 443.5 kB / 332.6 MB, free: 4.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3837, allocations: 8.031 kB / 332.6 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.905e-05/0.3838, allocations: 54.55 kB / 332.7 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.926e-05/0.3839, allocations: 19.81 kB / 332.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.3842, allocations: 218.8 kB / 332.9 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.3843, allocations: 20.44 kB / 332.9 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.3843, allocations: 28 kB / 333 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.3849, allocations: 229.8 kB / 333.2 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.385, allocations: 0 / 333.2 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.385, allocations: 16 kB / 333.2 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.385, allocations: 4 kB / 333.2 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.3855, allocations: 161.6 kB / 333.4 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.3869, allocations: 0.6821 MB / 334 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004277/0.3874, allocations: 167.2 kB / 334.2 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.3876, allocations: 74.06 kB / 334.3 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.3877, allocations: 8.188 kB / 334.3 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.388, allocations: 111.5 kB / 334.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.477e-06/0.388, allocations: 3.938 kB / 334.4 MB, free: 2.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004846/0.3885, allocations: 165.4 kB / 334.6 MB, free: 2.766 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.3885, allocations: 55.41 kB / 334.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.3887, allocations: 137 kB / 334.8 MB, free: 2.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.3888, allocations: 37.69 kB / 334.8 MB, free: 2.512 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.3889, allocations: 136.4 kB / 334.9 MB, free: 2.375 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.278e-05/0.389, allocations: 55.25 kB / 335 MB, free: 2.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.389, allocations: 12 kB / 335 MB, free: 2.309 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3892, allocations: 322.8 kB / 335.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.3894, allocations: 60.66 kB / 335.4 MB, free: 1.922 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.3896, allocations: 128.1 kB / 335.5 MB, free: 1.773 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.3898, allocations: 63.91 kB / 335.5 MB, free: 1.711 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3898, allocations: 3.938 kB / 335.6 MB, free: 1.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005612/0.3904, allocations: 233.3 kB / 335.8 MB, free: 1.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.3905, allocations: 11.98 kB / 335.8 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3905, allocations: 0 / 335.8 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3905, allocations: 4 kB / 335.8 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.3908, allocations: 35.86 kB / 335.8 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3908, allocations: 4 kB / 335.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.391, allocations: 15.94 kB / 335.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.431e-05/0.391, allocations: 11.98 kB / 335.9 MB, free: 1.391 MB / 282.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.000142/0.3912, allocations: 144.2 kB / 336 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.3912, allocations: 11.81 kB / 336 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005153/0.3918, allocations: 190.3 kB / 336.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3918, allocations: 0 / 336.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3918, allocations: 0 / 336.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3918, allocations: 7.984 kB / 336.2 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3929, allocations: 0.5493 MB / 336.8 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3929, allocations: 3.938 kB / 336.8 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.3931, allocations: 19.98 kB / 336.8 MB, free: 404 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3931, allocations: 0 / 336.8 MB, free: 404 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.3931, allocations: 8 kB / 336.8 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3931, allocations: 3.938 kB / 336.8 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3932, allocations: 3.953 kB / 336.8 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.3936, allocations: 283.6 kB / 337.1 MB, free: 88 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.46e-05/0.3937, allocations: 88.95 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.3938, allocations: 4 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.3939, allocations: 15.98 kB / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.932e-05/0.394, allocations: 19.97 kB / 337.2 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.3941, allocations: 11.95 kB / 337.2 MB, free: 15.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.634e-05/0.3942, allocations: 91.27 kB / 337.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.3942, allocations: 0 / 337.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003874/0.3946, allocations: 44 kB / 337.3 MB, free: 15.8 MB / 298.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.0008785/0.3955, allocations: 0.8215 MB / 338.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004769/0.396, allocations: 172.4 kB / 338.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.396, allocations: 4.062 kB / 338.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.3962, allocations: 83.91 kB / 338.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.3965, allocations: 19.94 kB / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009189/0.3974, allocations: 280.8 kB / 338.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3978, allocations: 0.7404 MB / 339.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.3979, allocations: 26.06 kB / 339.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.3981, allocations: 55.42 kB / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of SimCode: time 1.283e-06/0.3981, allocations: 0 / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.4279, allocations: 3.297 MB / 342.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003064/0.4283, allocations: 150.7 kB / 343 MB, free: 10.06 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.719, allocations: 0 / 343 MB, free: 10.06 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat