Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.333/2.333, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.836e-05, allocations: 2.75 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 44.52 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4502/0.5571, allocations: 70.11 MB / 364.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5574, allocations: 65.53 kB / 364.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0125/0.5699, allocations: 2.735 MB / 367.2 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.57, allocations: 0 / 367.2 MB, free: 22.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.57, allocations: 11.45 kB / 367.2 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007/0.5707, allocations: 428.1 kB / 367.6 MB, free: 22.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.5708, allocations: 11.69 kB / 367.6 MB, free: 22.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.5709, allocations: 27.19 kB / 367.7 MB, free: 22.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.5712, allocations: 222.2 kB / 367.9 MB, free: 22.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.201e-05/0.5712, allocations: 11.53 kB / 367.9 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.5713, allocations: 15.38 kB / 367.9 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004451/0.5718, allocations: 141.1 kB / 368.1 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.5723, allocations: 199.1 kB / 368.2 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.5723, allocations: 0 / 368.2 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.5723, allocations: 2.016 kB / 368.2 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.5724, allocations: 11.72 kB / 368.3 MB, free: 22.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.5737, allocations: 0.6373 MB / 368.9 MB, free: 21.76 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.5741, allocations: 148.4 kB / 369 MB, free: 21.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.5743, allocations: 75.89 kB / 369.1 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.5744, allocations: 7.5 kB / 369.1 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.5746, allocations: 109.6 kB / 369.2 MB, free: 21.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.547e-06/0.5746, allocations: 0 / 369.2 MB, free: 21.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004574/0.5751, allocations: 148.6 kB / 369.4 MB, free: 21.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.5752, allocations: 59 kB / 369.4 MB, free: 21.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.5753, allocations: 134.2 kB / 369.6 MB, free: 21.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.5754, allocations: 29.64 kB / 369.6 MB, free: 21.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.956e-05/0.5754, allocations: 127.5 kB / 369.7 MB, free: 21.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.5755, allocations: 55.62 kB / 369.8 MB, free: 21.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.64e-05/0.5756, allocations: 7.875 kB / 369.8 MB, free: 21.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.52e-05/0.5756, allocations: 323.3 kB / 370.1 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.5758, allocations: 57.69 kB / 370.2 MB, free: 20.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.576, allocations: 113.1 kB / 370.3 MB, free: 20.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.5762, allocations: 63.06 kB / 370.3 MB, free: 20.9 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5762, allocations: 0 / 370.3 MB, free: 20.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005078/0.5767, allocations: 210.2 kB / 370.5 MB, free: 20.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5768, allocations: 3.875 kB / 370.5 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.5768, allocations: 8.031 kB / 370.5 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.5768, allocations: 3.812 kB / 370.5 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.5771, allocations: 28.73 kB / 370.6 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.5771, allocations: 3.984 kB / 370.6 MB, free: 20.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.5773, allocations: 22.22 kB / 370.6 MB, free: 20.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.5774, allocations: 14.84 kB / 370.6 MB, free: 20.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001534/0.5775, allocations: 133.4 kB / 370.7 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000403/0.578, allocations: 142.2 kB / 370.9 MB, free: 20.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.578, allocations: 15.66 kB / 370.9 MB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005101/0.5785, allocations: 172.1 kB / 371.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.5786, allocations: 10.02 kB / 371.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.5786, allocations: 0 / 371.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.5786, allocations: 0 / 371.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.5798, allocations: 0.5014 MB / 371.6 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5798, allocations: 3.938 kB / 371.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.58, allocations: 21.47 kB / 371.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.58, allocations: 7.922 kB / 371.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.58, allocations: 0 / 371.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.58, allocations: 2.391 kB / 371.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5801, allocations: 0 / 371.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004743/0.5805, allocations: 262.1 kB / 371.9 MB, free: 20.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.5806, allocations: 96.73 kB / 372 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.5807, allocations: 10.11 kB / 372 MB, free: 20.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.5809, allocations: 3.844 kB / 372 MB, free: 20.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.581, allocations: 26.8 kB / 372 MB, free: 20.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.581, allocations: 3.781 kB / 372 MB, free: 20.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.095e-05/0.5811, allocations: 93.28 kB / 372.1 MB, free: 19.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5811, allocations: 0 / 372.1 MB, free: 19.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005372/0.5817, allocations: 30.19 kB / 372.1 MB, free: 19.97 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0009266/0.5826, allocations: 0.8087 MB / 372.9 MB, free: 19.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.5831, allocations: 154.5 kB / 373.1 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5831, allocations: 0 / 373.1 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.5834, allocations: 75.42 kB / 373.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.5837, allocations: 21.58 kB / 373.2 MB, free: 19.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009935/0.5847, allocations: 262.4 kB / 373.4 MB, free: 19.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.5852, allocations: 0.7384 MB / 374.2 MB, free: 18.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.5853, allocations: 25.8 kB / 374.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.5855, allocations: 58.02 kB / 374.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.5855, allocations: 3.938 kB / 374.3 MB, free: 18.4 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05242/0.638, allocations: 2.978 MB / 377.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000303/0.6383, allocations: 135 kB / 377.4 MB, free: 17.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.973/3.611, allocations: 0 / 377.4 MB, free: 17.98 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat