Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.756e-05, allocations: 0 / 292.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1244, allocations: 50.41 MB / 342.6 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.5592, allocations: 76.23 MB / 418.9 MB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/0.5596, allocations: 68.53 kB / 418.9 MB, free: 1.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01838/0.578, allocations: 2.905 MB / 421.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.578, allocations: 0 / 421.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.973e-05/0.5781, allocations: 8 kB / 421.8 MB, free: 15.04 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.001055/0.5792, allocations: 434.2 kB / 422.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.748e-05/0.5792, allocations: 16.03 kB / 422.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.5794, allocations: 58.05 kB / 422.3 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.5795, allocations: 15.81 kB / 422.4 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.58, allocations: 218.4 kB / 422.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-05/0.5801, allocations: 20.12 kB / 422.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.5802, allocations: 31.19 kB / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.5811, allocations: 235.4 kB / 422.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.5811, allocations: 3.984 kB / 422.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.5812, allocations: 11.31 kB / 422.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.5812, allocations: 8 kB / 422.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006704/0.5819, allocations: 151.1 kB / 423 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.5842, allocations: 0.696 MB / 423.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/0.5848, allocations: 151.2 kB / 423.9 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.5852, allocations: 84.12 kB / 423.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.5852, allocations: 4.188 kB / 424 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/0.5856, allocations: 118.5 kB / 424.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 9.769e-06/0.5856, allocations: 3.984 kB / 424.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007258/0.5864, allocations: 164.4 kB / 424.2 MB, free: 12.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.065e-05/0.5865, allocations: 55.41 kB / 424.3 MB, free: 12.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.5867, allocations: 138.9 kB / 424.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.462e-05/0.5868, allocations: 37.56 kB / 424.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.587, allocations: 130.9 kB / 424.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.5872, allocations: 62 kB / 424.6 MB, free: 12.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.5872, allocations: 3.938 kB / 424.7 MB, free: 12.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.5874, allocations: 330.3 kB / 425 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/0.5877, allocations: 61.03 kB / 425 MB, free: 12.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.5881, allocations: 128.2 kB / 425.2 MB, free: 12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.5885, allocations: 71.7 kB / 425.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.5885, allocations: 0 / 425.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000923/0.5895, allocations: 228.5 kB / 425.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.5895, allocations: 4 kB / 425.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.5895, allocations: 4 kB / 425.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.5896, allocations: 0 / 425.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.5899, allocations: 43.17 kB / 425.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.59, allocations: 4 kB / 425.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.5903, allocations: 15.44 kB / 425.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.879e-05/0.5904, allocations: 22.81 kB / 425.5 MB, free: 11.68 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.000208/0.5906, allocations: 130.4 kB / 425.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.926e-05/0.5907, allocations: 11.81 kB / 425.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008095/0.5915, allocations: 192.8 kB / 425.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.5915, allocations: 0 / 425.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5915, allocations: 4 kB / 425.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.5916, allocations: 3.984 kB / 425.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.5934, allocations: 0.5579 MB / 426.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.5934, allocations: 0 / 426.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.5937, allocations: 19.92 kB / 426.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.615e-05/0.5937, allocations: 4 kB / 426.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.5938, allocations: 2.938 kB / 426.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.077e-05/0.5938, allocations: 3.953 kB / 426.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.5938, allocations: 0 / 426.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007294/0.5946, allocations: 277.2 kB / 426.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.531e-05/0.5947, allocations: 92.86 kB / 426.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.405e-05/0.5948, allocations: 7.625 kB / 426.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.595, allocations: 11.92 kB / 426.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.5952, allocations: 26.92 kB / 426.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.5953, allocations: 15.84 kB / 426.9 MB, free: 10.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.5954, allocations: 90.41 kB / 427 MB, free: 10.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.5955, allocations: 0 / 427 MB, free: 10.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007513/0.5962, allocations: 50.12 kB / 427 MB, free: 10.3 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.001316/0.5976, allocations: 0.8099 MB / 427.8 MB, free: 9.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007651/0.5984, allocations: 174.5 kB / 428 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5984, allocations: 448 / 428 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003339/0.5987, allocations: 84.23 kB / 428.1 MB, free: 9.312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.5992, allocations: 19.27 kB / 428.1 MB, free: 9.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.6006, allocations: 288.2 kB / 428.4 MB, free: 9.023 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005644/0.6012, allocations: 0.7365 MB / 429.1 MB, free: 8.262 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.6014, allocations: 26.08 kB / 429.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.6016, allocations: 63.53 kB / 429.2 MB, free: 8.211 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6017, allocations: 0 / 429.2 MB, free: 8.211 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05839/0.6601, allocations: 3.308 MB / 432.5 MB, free: 4.98 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004101/0.6606, allocations: 143.1 kB / 432.7 MB, free: 4.758 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.398/3.059, allocations: 3.938 kB / 432.7 MB, free: 4.754 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat