Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.091/2.091, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.97e-05, allocations: 0 / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.09963, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3976/0.4973, allocations: 70.8 MB / 370.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4976, allocations: 62.12 kB / 370.8 MB, free: 21.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.5097, allocations: 2.783 MB / 373.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5098, allocations: 0 / 373.6 MB, free: 21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.5098, allocations: 8.188 kB / 373.6 MB, free: 21 MB / 314.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.0006571/0.5105, allocations: 429.9 kB / 374 MB, free: 20.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.5105, allocations: 10.09 kB / 374.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.046e-05/0.5106, allocations: 62.88 kB / 374.1 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.633e-05/0.5107, allocations: 22.16 kB / 374.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.511, allocations: 219.2 kB / 374.3 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.5111, allocations: 26.72 kB / 374.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.5111, allocations: 24.05 kB / 374.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.5117, allocations: 222.2 kB / 374.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.5117, allocations: 0 / 374.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.5117, allocations: 9.188 kB / 374.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.5118, allocations: 11.88 kB / 374.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.5122, allocations: 157.9 kB / 374.8 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.5134, allocations: 0.6869 MB / 375.5 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.5139, allocations: 165.2 kB / 375.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.5141, allocations: 78.23 kB / 375.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.5141, allocations: 4.734 kB / 375.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.5144, allocations: 107.2 kB / 375.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.975e-06/0.5144, allocations: 0 / 375.8 MB, free: 19.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004551/0.5149, allocations: 168.5 kB / 376 MB, free: 19.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.5149, allocations: 60.52 kB / 376 MB, free: 19.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.5151, allocations: 134.9 kB / 376.2 MB, free: 19.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.5151, allocations: 39 kB / 376.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.638e-05/0.5152, allocations: 125.1 kB / 376.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.5153, allocations: 60.81 kB / 376.4 MB, free: 19.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.792e-05/0.5153, allocations: 8.438 kB / 376.4 MB, free: 19.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.875e-05/0.5154, allocations: 325.4 kB / 376.7 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.5156, allocations: 65.55 kB / 376.8 MB, free: 19.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.5158, allocations: 117.6 kB / 376.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.516, allocations: 63.12 kB / 377 MB, free: 19.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.516, allocations: 1.156 kB / 377 MB, free: 19.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005172/0.5165, allocations: 242.2 kB / 377.2 MB, free: 18.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.5166, allocations: 5.656 kB / 377.2 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-06/0.5166, allocations: 2.125 kB / 377.2 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.5166, allocations: 11.67 kB / 377.2 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.5168, allocations: 29.69 kB / 377.3 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.5169, allocations: 3.688 kB / 377.3 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.517, allocations: 29 kB / 377.3 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.5171, allocations: 9.531 kB / 377.3 MB, free: 18.96 MB / 314.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.0001031/0.5172, allocations: 127.4 kB / 377.4 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.5173, allocations: 11.36 kB / 377.4 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005067/0.5178, allocations: 196.7 kB / 377.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.5178, allocations: 2.625 kB / 377.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5178, allocations: 3.953 kB / 377.6 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.5178, allocations: 3.391 kB / 377.6 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009967/0.5188, allocations: 0.556 MB / 378.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5189, allocations: 2.109 kB / 378.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.519, allocations: 23.56 kB / 378.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.519, allocations: 1.281 kB / 378.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.5191, allocations: 8.188 kB / 378.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.5191, allocations: 1.125 kB / 378.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5191, allocations: 1 kB / 378.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.5195, allocations: 272.5 kB / 378.5 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.5195, allocations: 94.45 kB / 378.6 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.5196, allocations: 8.547 kB / 378.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.5197, allocations: 14.77 kB / 378.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.5198, allocations: 25.2 kB / 378.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.5199, allocations: 6.109 kB / 378.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.9e-05/0.5199, allocations: 95.89 kB / 378.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.52, allocations: 0 / 378.7 MB, free: 18.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004479/0.5204, allocations: 38.53 kB / 378.8 MB, free: 18.14 MB / 314.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.0006455/0.5211, allocations: 0.8233 MB / 379.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004589/0.5215, allocations: 167.2 kB / 379.8 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5216, allocations: 0 / 379.8 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.5218, allocations: 86.17 kB / 379.8 MB, free: 17.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.5221, allocations: 24.06 kB / 379.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008766/0.523, allocations: 282.8 kB / 380.1 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.5232, allocations: 0.7334 MB / 380.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.5233, allocations: 25.67 kB / 380.9 MB, free: 16.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.5235, allocations: 59.09 kB / 381 MB, free: 16.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5235, allocations: 3.938 kB / 381 MB, free: 16.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.5476, allocations: 3.287 MB / 384.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000352/0.548, allocations: 143.2 kB / 384.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.188, allocations: 3.938 kB / 384.4 MB, free: 15.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat