Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.153/2.153, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.789e-05/4.795e-05, allocations: 4 kB / 269.4 MB, free: 6.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 47.58 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5413, allocations: 75.72 MB / 392.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.5416, allocations: 65.16 kB / 392.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01217/0.5538, allocations: 2.983 MB / 395.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5539, allocations: 0 / 395.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.5539, allocations: 4.656 kB / 395.8 MB, free: 9.625 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007284/0.5547, allocations: 444.3 kB / 396.2 MB, free: 9.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.5547, allocations: 15.97 kB / 396.2 MB, free: 9.145 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.06e-05/0.5548, allocations: 57.61 kB / 396.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.5549, allocations: 27.7 kB / 396.3 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.5553, allocations: 223.4 kB / 396.5 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.5553, allocations: 19.56 kB / 396.6 MB, free: 8.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.5554, allocations: 33.59 kB / 396.6 MB, free: 8.789 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.5561, allocations: 263.3 kB / 396.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.5561, allocations: 0 / 396.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.5562, allocations: 11.25 kB / 396.9 MB, free: 8.578 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.5562, allocations: 4 kB / 396.9 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.5567, allocations: 162.7 kB / 397 MB, free: 8.469 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.5583, allocations: 0.9493 MB / 398 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.5587, allocations: 148.9 kB / 398.1 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.5589, allocations: 80.17 kB / 398.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.5589, allocations: 4.188 kB / 398.2 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.5592, allocations: 110.5 kB / 398.3 MB, free: 7.305 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.5592, allocations: 4 kB / 398.3 MB, free: 7.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004444/0.5597, allocations: 156.2 kB / 398.5 MB, free: 7.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.5597, allocations: 59.39 kB / 398.5 MB, free: 7.102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.5599, allocations: 140.9 kB / 398.7 MB, free: 6.973 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.1e-05/0.56, allocations: 41.2 kB / 398.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.5601, allocations: 140 kB / 398.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.558e-05/0.5602, allocations: 58.78 kB / 398.9 MB, free: 6.754 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.5602, allocations: 7.625 kB / 398.9 MB, free: 6.754 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5604, allocations: 322.8 kB / 399.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.5605, allocations: 60.27 kB / 399.3 MB, free: 6.391 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.5608, allocations: 139.7 kB / 399.4 MB, free: 6.254 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.561, allocations: 67.27 kB / 399.5 MB, free: 6.203 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.561, allocations: 0 / 399.5 MB, free: 6.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005529/0.5616, allocations: 243.3 kB / 399.7 MB, free: 6.004 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.5616, allocations: 8 kB / 399.7 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.5617, allocations: 4 kB / 399.7 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.5617, allocations: 4 kB / 399.7 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.5619, allocations: 31.86 kB / 399.8 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.276e-05/0.562, allocations: 11.92 kB / 399.8 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.5622, allocations: 23.56 kB / 399.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.5622, allocations: 15.94 kB / 399.8 MB, free: 5.918 MB / 314.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,SetBoolean1.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.000131/0.5624, allocations: 123.8 kB / 399.9 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.5624, allocations: 15.77 kB / 399.9 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.5629, allocations: 192.7 kB / 400.1 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.563, allocations: 4 kB / 400.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.563, allocations: 0 / 400.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.563, allocations: 0 / 400.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.5641, allocations: 0.5876 MB / 400.7 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.5641, allocations: 4 kB / 400.7 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.5643, allocations: 11.94 kB / 400.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/0.5643, allocations: 4 kB / 400.7 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.5643, allocations: 7.922 kB / 400.7 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.5643, allocations: 0 / 400.7 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5643, allocations: 0 / 400.7 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.5648, allocations: 277.3 kB / 401 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.5649, allocations: 88.95 kB / 401.1 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.5649, allocations: 11.84 kB / 401.1 MB, free: 4.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5651, allocations: 7.812 kB / 401.1 MB, free: 4.672 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.5653, allocations: 15.97 kB / 401.1 MB, free: 4.656 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/0.5654, allocations: 15.81 kB / 401.2 MB, free: 4.645 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.5655, allocations: 99.14 kB / 401.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.5655, allocations: 0 / 401.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005202/0.5661, allocations: 47.53 kB / 401.3 MB, free: 4.512 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 (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,SetBoolean1.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.0008563/0.5669, allocations: 0.8194 MB / 402.1 MB, free: 3.707 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005177/0.5675, allocations: 167.6 kB / 402.3 MB, free: 3.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5675, allocations: 0 / 402.3 MB, free: 3.582 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.5677, allocations: 82.86 kB / 402.4 MB, free: 3.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.568, allocations: 18.75 kB / 402.4 MB, free: 3.508 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009893/0.569, allocations: 295.2 kB / 402.7 MB, free: 3.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.5695, allocations: 0.7366 MB / 403.4 MB, free: 2.461 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.5696, allocations: 26.06 kB / 403.4 MB, free: 2.434 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.5698, allocations: 64.72 kB / 403.5 MB, free: 2.406 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5698, allocations: 4 kB / 403.5 MB, free: 2.402 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.5982, allocations: 3.335 MB / 406.8 MB, free: 15.13 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003254/0.5986, allocations: 159.3 kB / 407 MB, free: 14.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/3.167, allocations: 0 / 407 MB, free: 14.9 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat