Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.414e-05, allocations: 4 kB / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.125, allocations: 50.41 MB / 343.1 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4488/0.5738, allocations: 76.87 MB / 420 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.5741, allocations: 63.16 kB / 420.1 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01464/0.5888, allocations: 3.057 MB / 423.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5888, allocations: 0 / 423.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.5889, allocations: 8 kB / 423.1 MB, free: 14.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009919/0.5899, allocations: 448.6 kB / 423.6 MB, free: 13.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/0.59, allocations: 8.031 kB / 423.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.5901, allocations: 56.42 kB / 423.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.5902, allocations: 23.72 kB / 423.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.5907, allocations: 224 kB / 423.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.878e-05/0.5908, allocations: 21.94 kB / 423.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.646e-05/0.5909, allocations: 33.61 kB / 423.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/0.5918, allocations: 268.6 kB / 424.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.5918, allocations: 0 / 424.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.81e-05/0.5919, allocations: 5.625 kB / 424.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.5919, allocations: 11.94 kB / 424.2 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006163/0.5925, allocations: 154.9 kB / 424.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.5948, allocations: 0.9523 MB / 425.3 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005829/0.5955, allocations: 171.9 kB / 425.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002723/0.5958, allocations: 74.72 kB / 425.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.5958, allocations: 4.125 kB / 425.6 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004134/0.5963, allocations: 136.6 kB / 425.7 MB, free: 11.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 4.048e-06/0.5963, allocations: 0 / 425.7 MB, free: 11.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007263/0.597, allocations: 180.7 kB / 425.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/0.5971, allocations: 85.05 kB / 426 MB, free: 11.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.5974, allocations: 142.7 kB / 426.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.127e-05/0.5975, allocations: 41.11 kB / 426.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.5977, allocations: 140.2 kB / 426.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.5978, allocations: 57.12 kB / 426.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.5979, allocations: 7.125 kB / 426.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.5981, allocations: 326.1 kB / 426.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.5984, allocations: 58.12 kB / 426.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.5988, allocations: 138.3 kB / 426.9 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.5991, allocations: 77.62 kB / 426.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.5992, allocations: 0 / 426.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009289/0.6001, allocations: 236.4 kB / 427.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.6002, allocations: 8 kB / 427.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.6002, allocations: 7.984 kB / 427.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.308e-05/0.6002, allocations: 4 kB / 427.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.6006, allocations: 40.09 kB / 427.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.406e-05/0.6007, allocations: 7.984 kB / 427.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.601, allocations: 22.72 kB / 427.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.335e-05/0.601, allocations: 15.81 kB / 427.3 MB, free: 10.41 MB / 346.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0002042/0.6013, allocations: 124.6 kB / 427.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.6013, allocations: 11.91 kB / 427.4 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007849/0.6021, allocations: 196.9 kB / 427.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.6022, allocations: 4 kB / 427.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.6022, allocations: 7.953 kB / 427.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.6022, allocations: 0 / 427.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.6039, allocations: 0.5791 MB / 428.2 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.604, allocations: 4 kB / 428.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.6042, allocations: 15.98 kB / 428.2 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.557e-05/0.6042, allocations: 3.953 kB / 428.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.6042, allocations: 11.44 kB / 428.2 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/0.6043, allocations: 4 kB / 428.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6043, allocations: 0 / 428.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006849/0.605, allocations: 285.8 kB / 428.5 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.964e-05/0.6051, allocations: 95.91 kB / 428.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.6052, allocations: 7.562 kB / 428.6 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.6054, allocations: 11.98 kB / 428.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.6056, allocations: 23.34 kB / 428.6 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.6056, allocations: 7.438 kB / 428.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001139/0.6058, allocations: 95.14 kB / 428.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6058, allocations: 0 / 428.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007573/0.6066, allocations: 40.62 kB / 428.8 MB, free: 8.977 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001276/0.6078, allocations: 0.9277 MB / 429.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007003/0.6086, allocations: 172.1 kB / 429.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.6086, allocations: 0 / 429.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.6089, allocations: 77.48 kB / 429.9 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.6094, allocations: 23.17 kB / 430 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.6109, allocations: 297.5 kB / 430.3 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.6115, allocations: 0.7472 MB / 431 MB, free: 6.801 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.6117, allocations: 18.08 kB / 431 MB, free: 6.785 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.6119, allocations: 62.72 kB / 431.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of SimCode: time 1.784e-06/0.612, allocations: 0 / 431.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.6451, allocations: 3.384 MB / 434.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003153/0.6455, allocations: 155.2 kB / 434.6 MB, free: 3.219 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.569/3.214, allocations: 4 kB / 434.6 MB, free: 3.215 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat