Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.4e-05, allocations: 0 / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09247/0.09255, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3728/0.4654, allocations: 71.43 MB / 371.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.4658, allocations: 65.81 kB / 371.4 MB, free: 21.22 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01268/0.4785, allocations: 2.927 MB / 374.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4785, allocations: 0 / 374.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.4786, allocations: 5.062 kB / 374.3 MB, free: 20.73 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.000629/0.4792, allocations: 448.2 kB / 374.8 MB, free: 20.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4793, allocations: 9.469 kB / 374.8 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.935e-05/0.4793, allocations: 58.58 kB / 374.9 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.865e-05/0.4794, allocations: 19.16 kB / 374.9 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.4797, allocations: 240.4 kB / 375.1 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.4798, allocations: 19.59 kB / 375.1 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.4798, allocations: 28.09 kB / 375.2 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006229/0.4805, allocations: 260.3 kB / 375.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.4805, allocations: 3.938 kB / 375.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.4805, allocations: 9.75 kB / 375.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.4806, allocations: 5.312 kB / 375.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.481, allocations: 163.1 kB / 375.6 MB, free: 19.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.4825, allocations: 0.9433 MB / 376.5 MB, free: 19.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003771/0.4829, allocations: 154 kB / 376.7 MB, free: 19.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.4831, allocations: 76.61 kB / 376.8 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.4831, allocations: 1.344 kB / 376.8 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.4834, allocations: 113.7 kB / 376.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.206e-06/0.4834, allocations: 0 / 376.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000492/0.4839, allocations: 156.1 kB / 377 MB, free: 19.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.484, allocations: 56.91 kB / 377.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.4841, allocations: 143.4 kB / 377.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.4842, allocations: 39.06 kB / 377.3 MB, free: 19.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.359e-05/0.4843, allocations: 204.4 kB / 377.5 MB, free: 18.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.4844, allocations: 53.97 kB / 377.5 MB, free: 18.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.4844, allocations: 8.5 kB / 377.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.4845, allocations: 335.7 kB / 377.8 MB, free: 18.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.4847, allocations: 56.75 kB / 377.9 MB, free: 18.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.4849, allocations: 127.8 kB / 378 MB, free: 18.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.4851, allocations: 66.16 kB / 378.1 MB, free: 18.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4851, allocations: 4.969 kB / 378.1 MB, free: 18.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005492/0.4857, allocations: 251.9 kB / 378.3 MB, free: 18.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.4857, allocations: 8.078 kB / 378.3 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4857, allocations: 2.938 kB / 378.3 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.4858, allocations: 4.125 kB / 378.4 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.486, allocations: 36.19 kB / 378.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.486, allocations: 3.188 kB / 378.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.4862, allocations: 25.12 kB / 378.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.4863, allocations: 13.53 kB / 378.4 MB, free: 18.31 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.0001077/0.4864, allocations: 137.8 kB / 378.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.778e-05/0.4865, allocations: 14.2 kB / 378.6 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/0.4869, allocations: 188.1 kB / 378.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.487, allocations: 2.438 kB / 378.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.487, allocations: 0 / 378.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.487, allocations: 1.188 kB / 378.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009909/0.488, allocations: 0.5916 MB / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.488, allocations: 0 / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.4882, allocations: 17.7 kB / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.4882, allocations: 1.906 kB / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.4882, allocations: 5.297 kB / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.4882, allocations: 2.938 kB / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4882, allocations: 0 / 379.4 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.4887, allocations: 276.3 kB / 379.7 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.4887, allocations: 87.59 kB / 379.7 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.4888, allocations: 6.438 kB / 379.7 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.4889, allocations: 8.984 kB / 379.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.489, allocations: 21.56 kB / 379.8 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.4891, allocations: 9 kB / 379.8 MB, free: 17.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.695e-05/0.4891, allocations: 95.7 kB / 379.9 MB, free: 17.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4891, allocations: 9.438 kB / 379.9 MB, free: 17.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004434/0.4896, allocations: 39.41 kB / 379.9 MB, free: 17.44 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.0006566/0.4903, allocations: 0.8104 MB / 380.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004656/0.4908, allocations: 177.8 kB / 380.9 MB, free: 16.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4908, allocations: 0 / 380.9 MB, free: 16.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.491, allocations: 79.78 kB / 381 MB, free: 16.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.4913, allocations: 15.98 kB / 381 MB, free: 16.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000938/0.4922, allocations: 315.3 kB / 381.3 MB, free: 16.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.493, allocations: 0.7391 MB / 382 MB, free: 31.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.4932, allocations: 61.58 kB / 382.1 MB, free: 31.85 MB / 330.7 MB Notification: Performance of SimCode: time 2.134e-06/0.4932, allocations: 0 / 382.1 MB, free: 31.85 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.723/3.216, allocations: 3.027 MB / 385.1 MB, free: 31.57 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat