Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.843e-05, allocations: 0 / 292.7 MB, free: 8.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 50.42 MB / 343.1 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4859/0.6046, allocations: 76.24 MB / 419.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.6049, allocations: 66.64 kB / 419.5 MB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01166/0.6166, allocations: 2.903 MB / 422.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6166, allocations: 0 / 422.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.872e-05/0.6167, allocations: 19.92 kB / 422.4 MB, free: 15.01 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007451/0.6174, allocations: 430.2 kB / 422.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.6175, allocations: 8.031 kB / 422.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.944e-05/0.6176, allocations: 55.42 kB / 422.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.191e-05/0.6177, allocations: 23.81 kB / 422.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.618, allocations: 222.5 kB / 423.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.6181, allocations: 26.69 kB / 423.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.6182, allocations: 23 kB / 423.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.6188, allocations: 237.2 kB / 423.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.6188, allocations: 3.938 kB / 423.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/0.6189, allocations: 14.17 kB / 423.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.6189, allocations: 4 kB / 423.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004278/0.6193, allocations: 146.8 kB / 423.5 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.6207, allocations: 0.7014 MB / 424.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.6212, allocations: 161.1 kB / 424.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.6214, allocations: 75.55 kB / 424.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.6214, allocations: 4.188 kB / 424.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.6217, allocations: 114.1 kB / 424.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.136e-06/0.6217, allocations: 0 / 424.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000463/0.6222, allocations: 167.4 kB / 424.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.6223, allocations: 59.39 kB / 424.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.6224, allocations: 132.5 kB / 424.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.6225, allocations: 41.44 kB / 425 MB, free: 12.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.6226, allocations: 124.2 kB / 425.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.812e-05/0.6227, allocations: 62.62 kB / 425.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.797e-05/0.6227, allocations: 3.875 kB / 425.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.6229, allocations: 330 kB / 425.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.6231, allocations: 59.89 kB / 425.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.6233, allocations: 130.1 kB / 425.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.6235, allocations: 66.58 kB / 425.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.6235, allocations: 4 kB / 425.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005319/0.6241, allocations: 222.8 kB / 426 MB, free: 11.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.6241, allocations: 8.219 kB / 426 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.6241, allocations: 4 kB / 426 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.6241, allocations: 4 kB / 426 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.6244, allocations: 31.86 kB / 426 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.6244, allocations: 11.88 kB / 426 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.6246, allocations: 19.67 kB / 426 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.6246, allocations: 15.89 kB / 426.1 MB, free: 11.67 MB / 346.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.0001347/0.6248, allocations: 127.8 kB / 426.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.6248, allocations: 15.81 kB / 426.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004869/0.6253, allocations: 188 kB / 426.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.6253, allocations: 7.938 kB / 426.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6254, allocations: 0 / 426.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.6254, allocations: 3.984 kB / 426.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.6265, allocations: 0.5535 MB / 426.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.6265, allocations: 11.98 kB / 427 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.6267, allocations: 23.17 kB / 427 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.6267, allocations: 0 / 427 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.6267, allocations: 6.375 kB / 427 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.6267, allocations: 3.953 kB / 427 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.6267, allocations: 3.984 kB / 427 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000439/0.6272, allocations: 268.2 kB / 427.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.6273, allocations: 92.86 kB / 427.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.6273, allocations: 11.42 kB / 427.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.6275, allocations: 11.38 kB / 427.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.57e-05/0.6276, allocations: 23.11 kB / 427.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.6276, allocations: 11.98 kB / 427.4 MB, free: 10.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.475e-05/0.6277, allocations: 94.39 kB / 427.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6277, allocations: 0 / 427.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004386/0.6282, allocations: 49.25 kB / 427.5 MB, free: 10.27 MB / 346.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.0008763/0.6291, allocations: 0.8118 MB / 428.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00048/0.6296, allocations: 167.3 kB / 428.5 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.6296, allocations: 0 / 428.5 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.6298, allocations: 85.06 kB / 428.6 MB, free: 9.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.6301, allocations: 25.47 kB / 428.6 MB, free: 9.277 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009316/0.631, allocations: 290.5 kB / 428.9 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.6314, allocations: 0.7326 MB / 429.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.6316, allocations: 22.08 kB / 429.7 MB, free: 8.219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.6317, allocations: 63.09 kB / 429.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6317, allocations: 0 / 429.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.6638, allocations: 3.309 MB / 433 MB, free: 4.957 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003769/0.6643, allocations: 145.9 kB / 433.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/3.059, allocations: 4 kB / 433.2 MB, free: 4.727 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat