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.783/1.783, allocations: 171.2 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.084e-05, allocations: 4 kB / 219.6 MB, free: 6.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2696, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4005, allocations: 64.82 MB / 323.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4008, allocations: 63.97 kB / 323.2 MB, free: 12.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01414/0.415, allocations: 2.731 MB / 326 MB, free: 10.15 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.415, allocations: 0 / 326 MB, free: 10.15 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.444e-05/0.4151, allocations: 8 kB / 326 MB, free: 10.14 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.0009538/0.4161, allocations: 443.5 kB / 326.4 MB, free: 9.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/0.4161, allocations: 12.03 kB / 326.4 MB, free: 9.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.4163, allocations: 19.81 kB / 326.4 MB, free: 9.629 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.4167, allocations: 218.8 kB / 326.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/0.4168, allocations: 8 kB / 326.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.475e-05/0.4169, allocations: 16 kB / 326.7 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006334/0.4175, allocations: 148.8 kB / 326.8 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007009/0.4183, allocations: 197 kB / 327 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.4183, allocations: 0 / 327 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/0.4183, allocations: 4 kB / 327 MB, free: 8.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.4184, allocations: 8 kB / 327 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.4201, allocations: 0.6388 MB / 327.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.4207, allocations: 147.2 kB / 327.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.4209, allocations: 69.23 kB / 327.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.4209, allocations: 4.188 kB / 327.9 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.4212, allocations: 119.4 kB / 328 MB, free: 7.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.775e-06/0.4212, allocations: 0 / 328 MB, free: 7.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004641/0.4217, allocations: 145.3 kB / 328.1 MB, free: 7.801 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.4217, allocations: 63.34 kB / 328.2 MB, free: 7.727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.4219, allocations: 131.4 kB / 328.3 MB, free: 7.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.422, allocations: 33.7 kB / 328.3 MB, free: 7.551 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.4221, allocations: 124.4 kB / 328.5 MB, free: 7.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/0.4222, allocations: 59.25 kB / 328.5 MB, free: 7.367 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.489e-05/0.4222, allocations: 0 / 328.5 MB, free: 7.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4224, allocations: 338.8 kB / 328.9 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.4226, allocations: 48.66 kB / 328.9 MB, free: 6.977 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.4228, allocations: 119.8 kB / 329 MB, free: 6.836 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.423, allocations: 55.97 kB / 329.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.423, allocations: 4 kB / 329.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005088/0.4236, allocations: 205.3 kB / 329.3 MB, free: 6.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.4236, allocations: 8 kB / 329.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4236, allocations: 224 / 329.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4236, allocations: 8 kB / 329.3 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.4239, allocations: 35.86 kB / 329.3 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.4239, allocations: 4 kB / 329.3 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.4241, allocations: 11.88 kB / 329.3 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.4241, allocations: 15.98 kB / 329.4 MB, free: 6.488 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.0001375/0.4243, allocations: 128 kB / 329.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003562/0.4246, allocations: 145.3 kB / 329.6 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.4247, allocations: 19.91 kB / 329.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.4252, allocations: 170.2 kB / 329.8 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.4252, allocations: 4 kB / 329.8 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4252, allocations: 3.938 kB / 329.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.4253, allocations: 3.984 kB / 329.8 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.4263, allocations: 0.4913 MB / 330.3 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4263, allocations: 4 kB / 330.3 MB, free: 5.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.4265, allocations: 19.92 kB / 330.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.4265, allocations: 0 / 330.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.4265, allocations: 12 kB / 330.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.4265, allocations: 0 / 330.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4265, allocations: 3.938 kB / 330.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.427, allocations: 259.2 kB / 330.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.441e-05/0.4271, allocations: 96.86 kB / 330.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.4272, allocations: 4 kB / 330.7 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.4273, allocations: 4 kB / 330.7 MB, free: 5.039 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.4274, allocations: 23.95 kB / 330.7 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.4275, allocations: 8 kB / 330.7 MB, free: 5.008 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.689e-05/0.4276, allocations: 95.22 kB / 330.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4276, allocations: 0 / 330.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004329/0.428, allocations: 32 kB / 330.9 MB, free: 4.883 MB / 282.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.000865/0.4289, allocations: 0.7988 MB / 331.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.4294, allocations: 159.8 kB / 331.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4294, allocations: 0 / 331.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.4296, allocations: 71.94 kB / 331.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.4299, allocations: 20.02 kB / 331.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009137/0.4308, allocations: 267 kB / 332.2 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.4312, allocations: 0.7362 MB / 332.9 MB, free: 2.754 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.4314, allocations: 22.08 kB / 332.9 MB, free: 2.734 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.4316, allocations: 63.34 kB / 333 MB, free: 2.672 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4316, allocations: 0 / 333 MB, free: 2.672 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/0.4678, allocations: 2.978 MB / 336 MB, free: 15.71 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.468, allocations: 126.3 kB / 336.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/2.811, allocations: 0 / 336.1 MB, free: 15.52 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