Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.657e-05/3.671e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2721, allocations: 38.77 MB / 263.9 MB, free: 9.711 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.4207, allocations: 66.14 MB / 330 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4211, allocations: 63.97 kB / 330.1 MB, free: 7.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01621/0.4374, allocations: 2.935 MB / 333 MB, free: 4.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4374, allocations: 0 / 333 MB, free: 4.457 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.891e-05/0.4375, allocations: 8.875 kB / 333 MB, free: 4.449 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009505/0.4384, allocations: 431 kB / 333.4 MB, free: 3.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.317e-05/0.4385, allocations: 12.03 kB / 333.4 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.4387, allocations: 54.53 kB / 333.5 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.4388, allocations: 23.72 kB / 333.5 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.4393, allocations: 226.8 kB / 333.7 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.4393, allocations: 28.56 kB / 333.8 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.914e-05/0.4394, allocations: 28 kB / 333.8 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008491/0.4403, allocations: 252.9 kB / 334 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.4404, allocations: 3.938 kB / 334 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.4404, allocations: 8 kB / 334.1 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.4404, allocations: 8 kB / 334.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006499/0.4411, allocations: 164.8 kB / 334.2 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.4433, allocations: 0.9329 MB / 335.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.4439, allocations: 151 kB / 335.3 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.4442, allocations: 77.31 kB / 335.4 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.4442, allocations: 8.188 kB / 335.4 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/0.4446, allocations: 119.3 kB / 335.5 MB, free: 1.738 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 4.258e-06/0.4446, allocations: 0 / 335.5 MB, free: 1.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006396/0.4453, allocations: 157.4 kB / 335.7 MB, free: 1.578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.4454, allocations: 59.41 kB / 335.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.4456, allocations: 140.8 kB / 335.9 MB, free: 1.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.111e-05/0.4457, allocations: 41.69 kB / 335.9 MB, free: 1.316 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.4459, allocations: 132.3 kB / 336 MB, free: 1.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.446, allocations: 67.23 kB / 336.1 MB, free: 1.117 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.446, allocations: 4 kB / 336.1 MB, free: 1.113 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4463, allocations: 330.8 kB / 336.4 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.4465, allocations: 52.66 kB / 336.5 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.4469, allocations: 137.5 kB / 336.6 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.4472, allocations: 67.95 kB / 336.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4472, allocations: 0 / 336.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008029/0.448, allocations: 237.2 kB / 336.9 MB, free: 264 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4481, allocations: 7.938 kB / 336.9 MB, free: 256 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.4481, allocations: 4 kB / 336.9 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.4481, allocations: 4.281 kB / 336.9 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.4485, allocations: 35.91 kB / 337 MB, free: 212 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/0.4485, allocations: 7.953 kB / 337 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.4488, allocations: 23.84 kB / 337 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.655e-05/0.4488, allocations: 12 kB / 337 MB, free: 168 kB / 282.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.0001909/0.4491, allocations: 132.7 kB / 337.1 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.4491, allocations: 15.89 kB / 337.1 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007214/0.4499, allocations: 182.3 kB / 337.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.4499, allocations: 4 kB / 337.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.4499, allocations: 0 / 337.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4499, allocations: 3.953 kB / 337.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.4515, allocations: 0.5758 MB / 337.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.4515, allocations: 3.984 kB / 337.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.4517, allocations: 19.94 kB / 337.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-05/0.4517, allocations: 7.953 kB / 337.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.4518, allocations: 11.92 kB / 337.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4518, allocations: 0 / 337.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4518, allocations: 0 / 337.9 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.4524, allocations: 267.6 kB / 338.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.4525, allocations: 85.02 kB / 338.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/0.4526, allocations: 15.94 kB / 338.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.4528, allocations: 4 kB / 338.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.4529, allocations: 23.97 kB / 338.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/0.453, allocations: 8 kB / 338.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000116/0.4531, allocations: 106.4 kB / 338.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.4531, allocations: 0 / 338.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007108/0.4539, allocations: 40 kB / 338.5 MB, free: 14.57 MB / 298.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.00116/0.455, allocations: 0.8174 MB / 339.3 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.4557, allocations: 167.8 kB / 339.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4557, allocations: 0 / 339.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.456, allocations: 83.86 kB / 339.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.4565, allocations: 11.95 kB / 339.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.4578, allocations: 293 kB / 339.8 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/0.4583, allocations: 0.748 MB / 340.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002022/0.4586, allocations: 30.06 kB / 340.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.4588, allocations: 59.42 kB / 340.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of SimCode: time 5.661e-06/0.4588, allocations: 0 / 340.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.4881, allocations: 3.341 MB / 344 MB, free: 9.012 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003239/0.4885, allocations: 159.9 kB / 344.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/2.935, allocations: 0 / 344.2 MB, free: 8.781 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat