Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.168e-05, allocations: 8 kB / 255.5 MB, free: 2.652 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 44.51 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/0.5229, allocations: 71.43 MB / 371.4 MB, free: 21.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5232, allocations: 64.3 kB / 371.5 MB, free: 21.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0133/0.5366, allocations: 2.943 MB / 374.4 MB, free: 21.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5366, allocations: 4 kB / 374.4 MB, free: 21.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.241e-05/0.5367, allocations: 4.312 kB / 374.4 MB, free: 21.39 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007352/0.5374, allocations: 450.2 kB / 374.9 MB, free: 21.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.5375, allocations: 9.938 kB / 374.9 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.37e-05/0.5376, allocations: 61.67 kB / 374.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.984e-05/0.5377, allocations: 22.08 kB / 374.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.538, allocations: 224.8 kB / 375.2 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.54e-05/0.538, allocations: 26.25 kB / 375.2 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.869e-05/0.5381, allocations: 27.77 kB / 375.2 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006113/0.5387, allocations: 255.4 kB / 375.5 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.5388, allocations: 0 / 375.5 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.5388, allocations: 10.84 kB / 375.5 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.5388, allocations: 5.188 kB / 375.5 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.5393, allocations: 161 kB / 375.6 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.5407, allocations: 0.9501 MB / 376.6 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.5411, allocations: 145.1 kB / 376.7 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.5413, allocations: 79.34 kB / 376.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.5413, allocations: 3.969 kB / 376.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/0.5416, allocations: 108.2 kB / 376.9 MB, free: 19.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.995e-06/0.5416, allocations: 1.562 kB / 376.9 MB, free: 19.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004535/0.5421, allocations: 157.4 kB / 377.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.5421, allocations: 57.41 kB / 377.1 MB, free: 19.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.5423, allocations: 139.8 kB / 377.3 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.5423, allocations: 43.3 kB / 377.3 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.199e-05/0.5424, allocations: 144.8 kB / 377.5 MB, free: 19.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.96e-05/0.5425, allocations: 58.66 kB / 377.5 MB, free: 19.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.767e-05/0.5425, allocations: 5.812 kB / 377.5 MB, free: 19.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.304e-05/0.5426, allocations: 332.1 kB / 377.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.5428, allocations: 59.66 kB / 377.9 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.543, allocations: 133.7 kB / 378 MB, free: 19.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.5432, allocations: 61.97 kB / 378.1 MB, free: 19.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.5433, allocations: 1 kB / 378.1 MB, free: 19.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005471/0.5438, allocations: 247.8 kB / 378.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.5439, allocations: 7.625 kB / 378.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.5439, allocations: 1.469 kB / 378.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.5439, allocations: 4.781 kB / 378.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.5442, allocations: 39.8 kB / 378.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.5442, allocations: 7.031 kB / 378.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.5444, allocations: 13.86 kB / 378.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.5444, allocations: 13.91 kB / 378.4 MB, free: 19.05 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,greaterEqual.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.0001094/0.5445, allocations: 137.6 kB / 378.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.5446, allocations: 17.67 kB / 378.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004638/0.5451, allocations: 182.2 kB / 378.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.5451, allocations: 8.953 kB / 378.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5451, allocations: 0 / 378.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5451, allocations: 2.969 kB / 378.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.5462, allocations: 0.5843 MB / 379.3 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5462, allocations: 0 / 379.3 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.5463, allocations: 21.23 kB / 379.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/0.5464, allocations: 1.375 kB / 379.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.5464, allocations: 10.83 kB / 379.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.5464, allocations: 1.156 kB / 379.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5464, allocations: 0 / 379.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004502/0.5469, allocations: 271.1 kB / 379.6 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.5469, allocations: 89.38 kB / 379.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.547, allocations: 6.359 kB / 379.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.5471, allocations: 11.67 kB / 379.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.876e-05/0.5473, allocations: 25.25 kB / 379.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.5473, allocations: 5.797 kB / 379.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.963e-05/0.5474, allocations: 103.7 kB / 379.9 MB, free: 18.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.784e-06/0.5474, allocations: 0 / 379.9 MB, free: 18.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004794/0.5479, allocations: 45.61 kB / 379.9 MB, free: 18.18 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,greaterEqual.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.0006738/0.5486, allocations: 0.8155 MB / 380.7 MB, free: 17.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000454/0.549, allocations: 170.5 kB / 380.9 MB, free: 17.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5491, allocations: 0.6875 kB / 380.9 MB, free: 17.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.5493, allocations: 79.97 kB / 381 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.5496, allocations: 16.22 kB / 381 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009523/0.5505, allocations: 298.9 kB / 381.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.5508, allocations: 0.742 MB / 382 MB, free: 16.63 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.551, allocations: 24.83 kB / 382.1 MB, free: 16.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.5511, allocations: 64.22 kB / 382.1 MB, free: 16.62 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5511, allocations: 0 / 382.1 MB, free: 16.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.5781, allocations: 3.349 MB / 385.5 MB, free: 16.21 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.5785, allocations: 165.3 kB / 385.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/3.149, allocations: 7.938 kB / 385.6 MB, free: 15.96 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat