Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.268/2.268, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.119e-05, allocations: 6.188 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 44.51 MB / 294.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.6057, allocations: 70.77 MB / 365.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.606, allocations: 64.95 kB / 365.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01305/0.6191, allocations: 2.876 MB / 368 MB, free: 22.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6192, allocations: 3.969 kB / 368 MB, free: 22.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.6192, allocations: 3.875 kB / 368 MB, free: 22.59 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.0006726/0.6199, allocations: 437.9 kB / 368.4 MB, free: 22.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.6199, allocations: 11.47 kB / 368.4 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.365e-05/0.62, allocations: 19.16 kB / 368.5 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.6204, allocations: 227.5 kB / 368.7 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.682e-05/0.6204, allocations: 11.59 kB / 368.7 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.225e-05/0.6205, allocations: 19.09 kB / 368.7 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004752/0.621, allocations: 145.2 kB / 368.9 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005671/0.6215, allocations: 234.7 kB / 369.1 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.6216, allocations: 3.984 kB / 369.1 MB, free: 21.89 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.6216, allocations: 0 / 369.1 MB, free: 21.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.6216, allocations: 7.625 kB / 369.1 MB, free: 21.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.6231, allocations: 0.8815 MB / 370 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.6234, allocations: 143.1 kB / 370.1 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.6236, allocations: 68.61 kB / 370.2 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.6237, allocations: 4 kB / 370.2 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.6239, allocations: 100.4 kB / 370.3 MB, free: 21.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.398e-06/0.6239, allocations: 3.984 kB / 370.3 MB, free: 21.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004307/0.6244, allocations: 145.3 kB / 370.4 MB, free: 21.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.6244, allocations: 68.38 kB / 370.5 MB, free: 21.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.6246, allocations: 140.6 kB / 370.6 MB, free: 20.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.6247, allocations: 32.48 kB / 370.7 MB, free: 20.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.6248, allocations: 130.1 kB / 370.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.6248, allocations: 54.88 kB / 370.9 MB, free: 20.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.681e-05/0.6249, allocations: 0 / 370.9 MB, free: 20.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.625, allocations: 328.6 kB / 371.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.6252, allocations: 50.84 kB / 371.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.6254, allocations: 128.6 kB / 371.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.6256, allocations: 68.72 kB / 371.4 MB, free: 20.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.6257, allocations: 0 / 371.4 MB, free: 20.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000533/0.6262, allocations: 212 kB / 371.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.6262, allocations: 7.75 kB / 371.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.6263, allocations: 8.109 kB / 371.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.6263, allocations: 7.875 kB / 371.6 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.6266, allocations: 32.27 kB / 371.7 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.6266, allocations: 7.875 kB / 371.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.6268, allocations: 18.09 kB / 371.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.6268, allocations: 11.34 kB / 371.7 MB, free: 20.32 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.0001382/0.627, allocations: 122.1 kB / 371.8 MB, free: 20.2 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003491/0.6273, allocations: 152.1 kB / 372 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.6274, allocations: 18.5 kB / 372 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004917/0.6279, allocations: 168.3 kB / 372.2 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.6279, allocations: 2.562 kB / 372.2 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6279, allocations: 1.281 kB / 372.2 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.628, allocations: 3.328 kB / 372.2 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.629, allocations: 0.5228 MB / 372.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.6291, allocations: 7.938 kB / 372.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.6292, allocations: 17.98 kB / 372.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.6293, allocations: 1.281 kB / 372.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.6293, allocations: 4.031 kB / 372.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.6293, allocations: 1.281 kB / 372.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6293, allocations: 0 / 372.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.6298, allocations: 250.7 kB / 373 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-05/0.6299, allocations: 88.86 kB / 373.1 MB, free: 19.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.63, allocations: 8.266 kB / 373.1 MB, free: 19.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.6301, allocations: 3.906 kB / 373.1 MB, free: 19.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.6303, allocations: 27.66 kB / 373.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.6303, allocations: 5.188 kB / 373.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.6304, allocations: 99.62 kB / 373.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6304, allocations: 3.938 kB / 373.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000559/0.631, allocations: 30.56 kB / 373.2 MB, free: 19.43 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.0008774/0.6319, allocations: 0.8053 MB / 374 MB, free: 18.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.6324, allocations: 156.4 kB / 374.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.6324, allocations: 1.344 kB / 374.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.6326, allocations: 66.62 kB / 374.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.6329, allocations: 18.48 kB / 374.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.634, allocations: 271.3 kB / 374.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.6344, allocations: 0.7384 MB / 375.3 MB, free: 17.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000163/0.6346, allocations: 26.52 kB / 375.3 MB, free: 17.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.6347, allocations: 62.86 kB / 375.4 MB, free: 17.86 MB / 314.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6347, allocations: 3.938 kB / 375.4 MB, free: 17.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05298/0.6877, allocations: 3.015 MB / 378.4 MB, free: 17.62 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000287/0.6881, allocations: 146 kB / 378.5 MB, free: 17.42 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.92/3.608, allocations: 3.938 kB / 378.5 MB, free: 17.42 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat