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 2.367/2.367, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.556e-05/2.553e-05, allocations: 0 / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3122, allocations: 44.49 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.4869, allocations: 70.77 MB / 365 MB, free: 11.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.4873, allocations: 63.97 kB / 365 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01511/0.5024, allocations: 2.896 MB / 367.9 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5025, allocations: 0 / 367.9 MB, free: 8.113 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.5025, allocations: 4 kB / 367.9 MB, free: 8.109 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.001036/0.5036, allocations: 443.3 kB / 368.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.634e-05/0.5037, allocations: 12.03 kB / 368.4 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.5038, allocations: 23.81 kB / 368.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/0.5043, allocations: 231.1 kB / 368.6 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.131e-05/0.5044, allocations: 8 kB / 368.6 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.993e-05/0.5045, allocations: 16 kB / 368.7 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007005/0.5052, allocations: 145.1 kB / 368.8 MB, free: 7.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008122/0.506, allocations: 224.9 kB / 369 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.5061, allocations: 4 kB / 369 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.5062, allocations: 7.984 kB / 369 MB, free: 6.914 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.5062, allocations: 8 kB / 369 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.5084, allocations: 0.9011 MB / 369.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.5091, allocations: 139.1 kB / 370.1 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.5094, allocations: 73.25 kB / 370.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.763e-05/0.5094, allocations: 4.188 kB / 370.2 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003353/0.5098, allocations: 103.5 kB / 370.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 5.51e-06/0.5098, allocations: 0 / 370.3 MB, free: 5.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006981/0.5105, allocations: 149.2 kB / 370.4 MB, free: 5.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.5106, allocations: 59.41 kB / 370.5 MB, free: 5.387 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.5109, allocations: 139 kB / 370.6 MB, free: 5.246 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.204e-05/0.511, allocations: 29.7 kB / 370.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.5111, allocations: 152.2 kB / 370.8 MB, free: 5.059 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.993e-05/0.5113, allocations: 51.27 kB / 370.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-05/0.5113, allocations: 0 / 370.8 MB, free: 5.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.5115, allocations: 326.8 kB / 371.1 MB, free: 4.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.5117, allocations: 52.66 kB / 371.2 MB, free: 4.625 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.5121, allocations: 137.4 kB / 371.3 MB, free: 4.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.5123, allocations: 61.5 kB / 371.4 MB, free: 4.402 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.5124, allocations: 0 / 371.4 MB, free: 4.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000736/0.5131, allocations: 213.3 kB / 371.6 MB, free: 4.188 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.5132, allocations: 7.953 kB / 371.6 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.5132, allocations: 8.266 kB / 371.6 MB, free: 4.172 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.701e-05/0.5132, allocations: 8 kB / 371.6 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.5136, allocations: 31.92 kB / 371.6 MB, free: 4.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.5136, allocations: 7.938 kB / 371.7 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.5138, allocations: 8 kB / 371.7 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-05/0.5139, allocations: 12 kB / 371.7 MB, free: 4.105 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.0001804/0.5141, allocations: 135.7 kB / 371.8 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004882/0.5146, allocations: 145.3 kB / 371.9 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.5147, allocations: 11.86 kB / 372 MB, free: 3.805 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/0.5154, allocations: 178.2 kB / 372.1 MB, free: 3.625 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.5154, allocations: 4 kB / 372.1 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5154, allocations: 0 / 372.1 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5155, allocations: 0 / 372.1 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.5169, allocations: 0.5219 MB / 372.7 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5169, allocations: 0 / 372.7 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.5171, allocations: 19.98 kB / 372.7 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.5172, allocations: 0 / 372.7 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.5172, allocations: 3.938 kB / 372.7 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.221e-06/0.5172, allocations: 8 kB / 372.7 MB, free: 3.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.5172, allocations: 3.938 kB / 372.7 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006266/0.5179, allocations: 259.2 kB / 372.9 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.239e-05/0.518, allocations: 85.02 kB / 373 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.518, allocations: 0 / 373 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.5183, allocations: 11.98 kB / 373 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.5184, allocations: 27.91 kB / 373.1 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.5185, allocations: 4 kB / 373.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.5186, allocations: 104.3 kB / 373.2 MB, free: 2.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.035e-06/0.5187, allocations: 0 / 373.2 MB, free: 2.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008015/0.5195, allocations: 39.84 kB / 373.2 MB, free: 2.461 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.001191/0.5207, allocations: 0.7903 MB / 374 MB, free: 1.641 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006396/0.5213, allocations: 156.5 kB / 374.2 MB, free: 1.488 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5214, allocations: 0 / 374.2 MB, free: 1.488 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.5216, allocations: 67.94 kB / 374.2 MB, free: 1.422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.5221, allocations: 19.92 kB / 374.2 MB, free: 1.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.5235, allocations: 272 kB / 374.5 MB, free: 1.098 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004969/0.5241, allocations: 0.7401 MB / 375.2 MB, free: 340 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.5243, allocations: 26.08 kB / 375.3 MB, free: 316 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5245, allocations: 59.41 kB / 375.3 MB, free: 256 kB / 314.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5246, allocations: 0 / 375.3 MB, free: 256 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09823/0.6228, allocations: 3.036 MB / 378.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003898/0.6233, allocations: 141.6 kB / 378.5 MB, free: 13.04 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/3.231, allocations: 0 / 378.5 MB, free: 13.04 MB / 330.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