Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.168/2.168, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.709e-05/3.727e-05, allocations: 0 / 255.4 MB, free: 2.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 44.51 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.5399, allocations: 70.79 MB / 370.7 MB, free: 21.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003576/0.5403, allocations: 60.41 kB / 370.8 MB, free: 21.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01756/0.5579, allocations: 2.782 MB / 373.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.558, allocations: 1.125 kB / 373.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.558, allocations: 9.125 kB / 373.6 MB, free: 20.91 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.0008639/0.5589, allocations: 430.8 kB / 374 MB, free: 20.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.559, allocations: 8.406 kB / 374 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.5591, allocations: 58.95 kB / 374.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.73e-05/0.5592, allocations: 22.69 kB / 374.1 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.5596, allocations: 223.9 kB / 374.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.5597, allocations: 21.91 kB / 374.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.789e-05/0.5598, allocations: 23.59 kB / 374.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008109/0.5606, allocations: 230.1 kB / 374.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.5606, allocations: 0 / 374.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.695e-05/0.5607, allocations: 8.859 kB / 374.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.5607, allocations: 5.344 kB / 374.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006619/0.5614, allocations: 160.6 kB / 374.8 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.5633, allocations: 0.695 MB / 375.5 MB, free: 19.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000615/0.5639, allocations: 163.9 kB / 375.6 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.5642, allocations: 79.61 kB / 375.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.5643, allocations: 2.938 kB / 375.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003705/0.5647, allocations: 111.1 kB / 375.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.348e-06/0.5647, allocations: 0 / 375.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006497/0.5654, allocations: 167.5 kB / 376 MB, free: 19.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.5654, allocations: 57.59 kB / 376 MB, free: 19.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.5656, allocations: 142.1 kB / 376.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.5657, allocations: 38.09 kB / 376.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.5658, allocations: 126.3 kB / 376.3 MB, free: 19.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.304e-05/0.566, allocations: 59.27 kB / 376.4 MB, free: 19.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.566, allocations: 8.344 kB / 376.4 MB, free: 19.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.5661, allocations: 323.1 kB / 376.7 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.5664, allocations: 61.62 kB / 376.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003208/0.5667, allocations: 126.7 kB / 376.9 MB, free: 18.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.567, allocations: 64.58 kB / 377 MB, free: 18.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.567, allocations: 4 kB / 377 MB, free: 18.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000793/0.5679, allocations: 235.1 kB / 377.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.5679, allocations: 8.344 kB / 377.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.5679, allocations: 6.906 kB / 377.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.568, allocations: 6.922 kB / 377.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.5683, allocations: 30.2 kB / 377.2 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.5683, allocations: 3.781 kB / 377.2 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.5686, allocations: 27.88 kB / 377.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-05/0.5687, allocations: 12.09 kB / 377.3 MB, free: 18.86 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.0001449/0.5688, allocations: 133.1 kB / 377.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.5689, allocations: 11.41 kB / 377.4 MB, free: 18.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000686/0.5696, allocations: 191.4 kB / 377.6 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.5696, allocations: 2.344 kB / 377.6 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5696, allocations: 4.891 kB / 377.6 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.178e-06/0.5697, allocations: 5.688 kB / 377.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.5711, allocations: 0.5548 MB / 378.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.5712, allocations: 0 / 378.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.5714, allocations: 22.47 kB / 378.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.886e-06/0.5714, allocations: 1.094 kB / 378.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.5714, allocations: 2.969 kB / 378.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.5715, allocations: 5.062 kB / 378.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.5715, allocations: 5.156 kB / 378.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005759/0.5721, allocations: 273.3 kB / 378.5 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.5721, allocations: 93.64 kB / 378.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.5722, allocations: 10.66 kB / 378.6 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.5724, allocations: 10.8 kB / 378.6 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.5726, allocations: 23.33 kB / 378.6 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/0.5727, allocations: 10.58 kB / 378.6 MB, free: 18.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.145e-05/0.5727, allocations: 94.95 kB / 378.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.5728, allocations: 1.469 kB / 378.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007393/0.5735, allocations: 42.91 kB / 378.8 MB, free: 18.03 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.0009459/0.5745, allocations: 0.8115 MB / 379.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006556/0.5752, allocations: 179.8 kB / 379.7 MB, free: 17.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5752, allocations: 3.938 kB / 379.7 MB, free: 17.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.5755, allocations: 85.28 kB / 379.8 MB, free: 17.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.5759, allocations: 25.55 kB / 379.9 MB, free: 17.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.5772, allocations: 279.7 kB / 380.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.5776, allocations: 0.7377 MB / 380.9 MB, free: 16.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000199/0.5778, allocations: 22.42 kB / 380.9 MB, free: 16.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.578, allocations: 56.61 kB / 380.9 MB, free: 16.47 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5781, allocations: 4 kB / 380.9 MB, free: 16.47 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.6075, allocations: 3.299 MB / 384.2 MB, free: 16.08 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/0.6078, allocations: 140.6 kB / 384.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.707/3.314, allocations: 0 / 384.4 MB, free: 15.86 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat