Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.265/2.265, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.412e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.3605, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4948, allocations: 70.78 MB / 365 MB, free: 11.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.4951, allocations: 63.97 kB / 365.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.5075, allocations: 2.877 MB / 367.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5075, allocations: 0 / 367.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.5075, allocations: 4 kB / 367.9 MB, free: 8.113 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.0007613/0.5083, allocations: 439.4 kB / 368.4 MB, free: 7.641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.5084, allocations: 8.031 kB / 368.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.115e-05/0.5085, allocations: 19.81 kB / 368.4 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.5089, allocations: 235.1 kB / 368.6 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.5089, allocations: 12 kB / 368.6 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.509, allocations: 20 kB / 368.6 MB, free: 7.312 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004653/0.5094, allocations: 141.1 kB / 368.8 MB, free: 7.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.51, allocations: 236.9 kB / 369 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.51, allocations: 0 / 369 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.5101, allocations: 0 / 369 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.5101, allocations: 8 kB / 369 MB, free: 6.914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.5117, allocations: 0.8896 MB / 369.9 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.512, allocations: 139.1 kB / 370.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.5123, allocations: 69.25 kB / 370.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.5123, allocations: 4.188 kB / 370.1 MB, free: 5.746 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.5126, allocations: 111.4 kB / 370.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.719e-06/0.5126, allocations: 0 / 370.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004357/0.513, allocations: 149.3 kB / 370.4 MB, free: 5.473 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.5131, allocations: 55.41 kB / 370.4 MB, free: 5.406 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.5133, allocations: 142.7 kB / 370.6 MB, free: 5.262 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.918e-05/0.5134, allocations: 37.64 kB / 370.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.5135, allocations: 140.3 kB / 370.7 MB, free: 5.078 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.119e-05/0.5136, allocations: 51.36 kB / 370.8 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.5136, allocations: 0 / 370.8 MB, free: 5.027 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.5138, allocations: 322.8 kB / 371.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.514, allocations: 52.66 kB / 371.2 MB, free: 4.648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.5142, allocations: 139 kB / 371.3 MB, free: 4.484 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.5144, allocations: 55.95 kB / 371.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.5144, allocations: 4 kB / 371.4 MB, free: 4.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005322/0.515, allocations: 217.2 kB / 371.6 MB, free: 4.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.515, allocations: 4 kB / 371.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.515, allocations: 11.94 kB / 371.6 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.5151, allocations: 4 kB / 371.6 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.5153, allocations: 35.92 kB / 371.6 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.5153, allocations: 4 kB / 371.6 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.5155, allocations: 20.06 kB / 371.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.5156, allocations: 15.98 kB / 371.7 MB, free: 4.113 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.0001503/0.5157, allocations: 123.8 kB / 371.8 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003582/0.5161, allocations: 145.3 kB / 371.9 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.5162, allocations: 11.86 kB / 371.9 MB, free: 3.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000507/0.5167, allocations: 170.2 kB / 372.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5167, allocations: 4 kB / 372.1 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5167, allocations: 0 / 372.1 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.5167, allocations: 4 kB / 372.1 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.5178, allocations: 0.5257 MB / 372.6 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5179, allocations: 0 / 372.6 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.518, allocations: 19.98 kB / 372.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.518, allocations: 0 / 372.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.518, allocations: 0 / 372.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.5181, allocations: 0 / 372.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5181, allocations: 8 kB / 372.7 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004386/0.5185, allocations: 255.2 kB / 372.9 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.551e-05/0.5186, allocations: 88.92 kB / 373 MB, free: 2.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.5187, allocations: 4 kB / 373 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.5188, allocations: 11.98 kB / 373 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.127e-05/0.5189, allocations: 19.91 kB / 373 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.519, allocations: 8 kB / 373 MB, free: 2.625 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.203e-05/0.5191, allocations: 100.4 kB / 373.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.395e-06/0.5191, allocations: 0 / 373.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004822/0.5196, allocations: 35.94 kB / 373.2 MB, free: 2.492 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.0009534/0.5205, allocations: 0.7941 MB / 374 MB, free: 1.672 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004598/0.521, allocations: 164.5 kB / 374.1 MB, free: 1.512 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.521, allocations: 0 / 374.1 MB, free: 1.512 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.5212, allocations: 67.94 kB / 374.2 MB, free: 1.445 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.5215, allocations: 15.98 kB / 374.2 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009505/0.5225, allocations: 263.4 kB / 374.5 MB, free: 1.129 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.5229, allocations: 0.7406 MB / 375.2 MB, free: 372 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000154/0.5231, allocations: 22.06 kB / 375.2 MB, free: 352 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.5232, allocations: 75.34 kB / 375.3 MB, free: 276 kB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.5233, allocations: 0 / 375.3 MB, free: 276 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04491/0.5682, allocations: 3.003 MB / 378.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/0.5685, allocations: 145.6 kB / 378.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.2, allocations: 0 / 378.4 MB, free: 13.09 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat