Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 171.2 MB / 183.3 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.817e-05/3.838e-05, allocations: 7.984 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2683, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.3928, allocations: 66.13 MB / 330 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.3931, allocations: 63.97 kB / 330.1 MB, free: 7.422 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01375/0.4069, allocations: 2.946 MB / 333 MB, free: 4.453 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4069, allocations: 0 / 333 MB, free: 4.453 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.407, allocations: 8 kB / 333 MB, free: 4.445 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007991/0.4078, allocations: 443.8 kB / 333.4 MB, free: 3.965 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.4078, allocations: 8.031 kB / 333.4 MB, free: 3.957 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.4079, allocations: 58.55 kB / 333.5 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.526e-05/0.408, allocations: 27.72 kB / 333.5 MB, free: 3.863 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.4084, allocations: 226.8 kB / 333.8 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.4084, allocations: 20.56 kB / 333.8 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.62e-05/0.4085, allocations: 35.92 kB / 333.8 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006293/0.4092, allocations: 260.8 kB / 334.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.4092, allocations: 0 / 334.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.453e-05/0.4092, allocations: 12 kB / 334.1 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.4093, allocations: 11.98 kB / 334.1 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004658/0.4098, allocations: 156.8 kB / 334.2 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.4115, allocations: 0.9406 MB / 335.2 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.412, allocations: 151.2 kB / 335.3 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.4122, allocations: 73.31 kB / 335.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.4122, allocations: 192 / 335.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.4125, allocations: 111.5 kB / 335.5 MB, free: 1.727 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.946e-06/0.4125, allocations: 3.938 kB / 335.5 MB, free: 1.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.000484/0.413, allocations: 161.4 kB / 335.7 MB, free: 1.559 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.4131, allocations: 59.41 kB / 335.7 MB, free: 1.488 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.4133, allocations: 143.5 kB / 335.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.4133, allocations: 37.7 kB / 335.9 MB, free: 1.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4135, allocations: 144.2 kB / 336 MB, free: 1.156 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.4136, allocations: 51.34 kB / 336.1 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.4136, allocations: 12 kB / 336.1 MB, free: 1.094 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4138, allocations: 322.8 kB / 336.4 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.414, allocations: 60.64 kB / 336.5 MB, free: 0.707 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.4142, allocations: 141.5 kB / 336.6 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.4144, allocations: 67.95 kB / 336.7 MB, free: 484 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4145, allocations: 0 / 336.7 MB, free: 484 kB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006025/0.4151, allocations: 237.5 kB / 336.9 MB, free: 240 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.4151, allocations: 8 kB / 336.9 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4151, allocations: 4 kB / 336.9 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.4152, allocations: 4 kB / 336.9 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.4154, allocations: 39.88 kB / 337 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.4154, allocations: 7.984 kB / 337 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.4156, allocations: 19.84 kB / 337 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.4157, allocations: 16 kB / 337 MB, free: 140 kB / 282.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,greaterEqual.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.0001446/0.4158, allocations: 128.7 kB / 337.1 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.337e-05/0.4159, allocations: 16.08 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005204/0.4164, allocations: 186.2 kB / 337.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4165, allocations: 4 kB / 337.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4165, allocations: 3.781 kB / 337.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4165, allocations: 3.938 kB / 337.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.4177, allocations: 0.5798 MB / 337.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.4177, allocations: 4 kB / 337.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.4179, allocations: 15.89 kB / 337.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.748e-05/0.4179, allocations: 4 kB / 338 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.4179, allocations: 7.984 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4179, allocations: 3.938 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.418, allocations: 4 kB / 338 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.4184, allocations: 263.6 kB / 338.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.605e-05/0.4185, allocations: 85.02 kB / 338.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.4186, allocations: 15.94 kB / 338.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.4187, allocations: 8 kB / 338.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4188, allocations: 23.97 kB / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.4189, allocations: 4 kB / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.501e-05/0.419, allocations: 106.3 kB / 338.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.565e-06/0.419, allocations: 0 / 338.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004844/0.4195, allocations: 51.84 kB / 338.5 MB, free: 14.53 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 (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: 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.0008907/0.4204, allocations: 0.8175 MB / 339.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005/0.4209, allocations: 167.8 kB / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4209, allocations: 0 / 339.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002049/0.4211, allocations: 79.92 kB / 339.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.4215, allocations: 16.52 kB / 339.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009983/0.4225, allocations: 296 kB / 339.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.4229, allocations: 0.7403 MB / 340.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.4231, allocations: 26.06 kB / 340.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.4234, allocations: 59.42 kB / 340.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.4234, allocations: 0 / 340.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.4579, allocations: 3.369 MB / 344.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0006153/0.4586, allocations: 159.8 kB / 344.2 MB, free: 8.719 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/2.842, allocations: 0 / 344.2 MB, free: 8.719 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat