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.056/2.056, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.504e-05/3.51e-05, allocations: 4 kB / 255.4 MB, free: 2.652 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 44.51 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4199/0.5575, allocations: 71.42 MB / 371.4 MB, free: 21.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.5578, allocations: 63.95 kB / 371.4 MB, free: 21.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.5702, allocations: 2.942 MB / 374.4 MB, free: 21.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5702, allocations: 0 / 374.4 MB, free: 21.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.5702, allocations: 4.469 kB / 374.4 MB, free: 21.47 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.0006833/0.5709, allocations: 445.3 kB / 374.8 MB, free: 21.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.571, allocations: 10.31 kB / 374.8 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.883e-05/0.5711, allocations: 59.3 kB / 374.9 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.197e-05/0.5712, allocations: 19.66 kB / 374.9 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.5715, allocations: 232 kB / 375.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.5715, allocations: 26.08 kB / 375.2 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.5716, allocations: 30.03 kB / 375.2 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.5722, allocations: 263.6 kB / 375.4 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.5723, allocations: 1 kB / 375.4 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.5723, allocations: 13.48 kB / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.5723, allocations: 5.906 kB / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.5728, allocations: 163.3 kB / 375.6 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.5745, allocations: 0.953 MB / 376.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.575, allocations: 152.3 kB / 376.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.5752, allocations: 74.97 kB / 376.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.5752, allocations: 2.438 kB / 376.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.5755, allocations: 116.1 kB / 376.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.126e-06/0.5755, allocations: 0 / 376.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005249/0.5761, allocations: 165.5 kB / 377.1 MB, free: 19.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.5761, allocations: 54.72 kB / 377.1 MB, free: 19.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.5763, allocations: 143.1 kB / 377.3 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.5764, allocations: 37.33 kB / 377.3 MB, free: 19.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-05/0.5765, allocations: 139.6 kB / 377.4 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.815e-05/0.5766, allocations: 57.97 kB / 377.5 MB, free: 19.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.5766, allocations: 12.09 kB / 377.5 MB, free: 19.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.5767, allocations: 325.9 kB / 377.8 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.5769, allocations: 63.34 kB / 377.9 MB, free: 19.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.5771, allocations: 130.1 kB / 378 MB, free: 19.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.5773, allocations: 68.11 kB / 378.1 MB, free: 19.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5773, allocations: 1.156 kB / 378.1 MB, free: 19.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000605/0.578, allocations: 255.9 kB / 378.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.578, allocations: 6.094 kB / 378.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.578, allocations: 2.062 kB / 378.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.5781, allocations: 3.969 kB / 378.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.5783, allocations: 31.67 kB / 378.4 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.5784, allocations: 7.438 kB / 378.4 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.5785, allocations: 22.84 kB / 378.4 MB, free: 19.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.5786, allocations: 10.72 kB / 378.4 MB, free: 19.11 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.0001135/0.5787, allocations: 131.7 kB / 378.5 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.5788, allocations: 19.02 kB / 378.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004953/0.5793, allocations: 186.2 kB / 378.7 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.5793, allocations: 2.25 kB / 378.7 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.5793, allocations: 4.938 kB / 378.7 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.5793, allocations: 5.812 kB / 378.8 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009832/0.5803, allocations: 0.5841 MB / 379.3 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.5804, allocations: 0 / 379.3 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.5805, allocations: 18.31 kB / 379.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.5805, allocations: 2.312 kB / 379.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.5805, allocations: 8.594 kB / 379.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.5806, allocations: 1.281 kB / 379.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5806, allocations: 0 / 379.4 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/0.581, allocations: 277.1 kB / 379.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-05/0.581, allocations: 92.66 kB / 379.7 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.5811, allocations: 7.969 kB / 379.7 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.5812, allocations: 7.781 kB / 379.7 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.5813, allocations: 24.34 kB / 379.8 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.5814, allocations: 4.062 kB / 379.8 MB, free: 18.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.661e-05/0.5815, allocations: 102.5 kB / 379.9 MB, free: 18.24 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.433e-06/0.5815, allocations: 4 kB / 379.9 MB, free: 18.24 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004562/0.5819, allocations: 45.91 kB / 379.9 MB, free: 18.23 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.0006621/0.5826, allocations: 0.8108 MB / 380.7 MB, free: 17.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004613/0.5831, allocations: 178.4 kB / 380.9 MB, free: 17.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5831, allocations: 0.6875 kB / 380.9 MB, free: 17.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.5833, allocations: 83.36 kB / 381 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.5836, allocations: 21.62 kB / 381 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008949/0.5845, allocations: 291.9 kB / 381.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.5848, allocations: 0.7421 MB / 382 MB, free: 16.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.5849, allocations: 22.3 kB / 382.1 MB, free: 16.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.5851, allocations: 61.62 kB / 382.1 MB, free: 16.68 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.5851, allocations: 4 kB / 382.1 MB, free: 16.67 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.6101, allocations: 3.357 MB / 385.5 MB, free: 16.27 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002928/0.6105, allocations: 164.7 kB / 385.6 MB, free: 16.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.136, allocations: 1.844 kB / 385.6 MB, free: 16.04 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