Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.324/2.324, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.667e-05/2.681e-05, allocations: 1.875 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/0.6147, allocations: 70.76 MB / 365 MB, free: 7.27 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.615, allocations: 68.31 kB / 365.1 MB, free: 7.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.6282, allocations: 2.895 MB / 368 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6282, allocations: 0 / 368 MB, free: 22.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.011e-05/0.6282, allocations: 7.516 kB / 368 MB, free: 22.78 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.0007337/0.629, allocations: 445.2 kB / 368.4 MB, free: 22.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.6291, allocations: 15.44 kB / 368.5 MB, free: 22.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.627e-05/0.6292, allocations: 25.56 kB / 368.5 MB, free: 22.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.6295, allocations: 222.5 kB / 368.7 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.6295, allocations: 7.656 kB / 368.7 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.6296, allocations: 14.78 kB / 368.7 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000498/0.6301, allocations: 145.9 kB / 368.9 MB, free: 22.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.6307, allocations: 229.3 kB / 369.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.6308, allocations: 3.938 kB / 369.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.6308, allocations: 5.266 kB / 369.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.6308, allocations: 6.562 kB / 369.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.6323, allocations: 0.8909 MB / 370 MB, free: 21.47 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.6327, allocations: 147.5 kB / 370.1 MB, free: 21.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.6329, allocations: 63.86 kB / 370.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.6329, allocations: 4.062 kB / 370.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.6332, allocations: 106.7 kB / 370.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.566e-06/0.6332, allocations: 4 kB / 370.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004588/0.6337, allocations: 146.3 kB / 370.5 MB, free: 21.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.6337, allocations: 61.12 kB / 370.5 MB, free: 21.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.6339, allocations: 138.9 kB / 370.6 MB, free: 21.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.6339, allocations: 33.02 kB / 370.7 MB, free: 21.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-05/0.6341, allocations: 135.6 kB / 370.8 MB, free: 21.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.6341, allocations: 62.3 kB / 370.9 MB, free: 21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.6342, allocations: 0 / 370.9 MB, free: 21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.6343, allocations: 329 kB / 371.2 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.6345, allocations: 52.25 kB / 371.2 MB, free: 20.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.6347, allocations: 127.3 kB / 371.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.6349, allocations: 65.8 kB / 371.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.635, allocations: 0 / 371.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005286/0.6355, allocations: 219.5 kB / 371.6 MB, free: 20.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.6355, allocations: 11.8 kB / 371.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.6356, allocations: 3.844 kB / 371.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.6356, allocations: 3.844 kB / 371.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.6359, allocations: 34.28 kB / 371.7 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.6359, allocations: 10.22 kB / 371.7 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.6361, allocations: 7.625 kB / 371.7 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.6361, allocations: 10.91 kB / 371.7 MB, free: 20.5 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.000151/0.6363, allocations: 137 kB / 371.9 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003607/0.6367, allocations: 143.6 kB / 372 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.6367, allocations: 15.48 kB / 372 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005213/0.6372, allocations: 177.3 kB / 372.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.6373, allocations: 3.812 kB / 372.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.6373, allocations: 0 / 372.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.6373, allocations: 3.938 kB / 372.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.6384, allocations: 0.5176 MB / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.6384, allocations: 0 / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.6386, allocations: 21.39 kB / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.6386, allocations: 1.281 kB / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.6386, allocations: 3.266 kB / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.6386, allocations: 1.312 kB / 372.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.6387, allocations: 4 kB / 372.7 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004704/0.6391, allocations: 262.1 kB / 373 MB, free: 19.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.461e-05/0.6392, allocations: 86.02 kB / 373.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.239e-05/0.6393, allocations: 4 kB / 373.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.6395, allocations: 3.75 kB / 373.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.6396, allocations: 26.47 kB / 373.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.6396, allocations: 8.062 kB / 373.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.464e-05/0.6397, allocations: 98.16 kB / 373.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6397, allocations: 1.344 kB / 373.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005685/0.6403, allocations: 33.84 kB / 373.3 MB, free: 19.62 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.0009182/0.6412, allocations: 0.8029 MB / 374.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004622/0.6417, allocations: 158 kB / 374.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.6417, allocations: 0 / 374.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.6419, allocations: 72.03 kB / 374.3 MB, free: 18.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.6423, allocations: 17.86 kB / 374.3 MB, free: 18.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009686/0.6433, allocations: 265.8 kB / 374.6 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.6437, allocations: 0.7362 MB / 375.3 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.6439, allocations: 27.69 kB / 375.3 MB, free: 18.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.6441, allocations: 66.23 kB / 375.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.6441, allocations: 0 / 375.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.6879, allocations: 3.046 MB / 378.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002587/0.6882, allocations: 142 kB / 378.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.019/3.707, allocations: 3.938 kB / 378.6 MB, free: 17.61 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat