Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.094e-05/2.104e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3318, allocations: 44.48 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4747, allocations: 70.77 MB / 365 MB, free: 11.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.475, allocations: 63.97 kB / 365 MB, free: 11.14 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01223/0.4873, allocations: 2.892 MB / 367.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4873, allocations: 0 / 367.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.4873, allocations: 4 kB / 367.9 MB, free: 8.227 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.0007874/0.4881, allocations: 455.3 kB / 368.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4882, allocations: 8.031 kB / 368.4 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.084e-05/0.4883, allocations: 19.81 kB / 368.4 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.4886, allocations: 231.2 kB / 368.6 MB, free: 7.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.4887, allocations: 12 kB / 368.6 MB, free: 7.434 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.4888, allocations: 19.98 kB / 368.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004561/0.4892, allocations: 141.1 kB / 368.8 MB, free: 7.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.4898, allocations: 232.9 kB / 369 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.4898, allocations: 0 / 369 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.4899, allocations: 0 / 369 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.4899, allocations: 8 kB / 369 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.4915, allocations: 0.8934 MB / 369.9 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.4919, allocations: 143.2 kB / 370 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.4921, allocations: 69.17 kB / 370.1 MB, free: 5.848 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.4921, allocations: 4.188 kB / 370.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.4924, allocations: 103.5 kB / 370.2 MB, free: 5.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.276e-06/0.4924, allocations: 0 / 370.2 MB, free: 5.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004563/0.4929, allocations: 157.1 kB / 370.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4929, allocations: 59.34 kB / 370.4 MB, free: 5.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.4931, allocations: 142.6 kB / 370.6 MB, free: 5.355 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.4932, allocations: 29.69 kB / 370.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.4933, allocations: 210.7 kB / 370.8 MB, free: 5.113 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.4934, allocations: 55.25 kB / 370.9 MB, free: 5.059 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.4934, allocations: 0 / 370.9 MB, free: 5.059 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4936, allocations: 322.8 kB / 371.2 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.4938, allocations: 60.66 kB / 371.2 MB, free: 4.672 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.494, allocations: 129.4 kB / 371.4 MB, free: 4.516 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.4942, allocations: 65.5 kB / 371.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4942, allocations: 0 / 371.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005392/0.4948, allocations: 209.4 kB / 371.6 MB, free: 4.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.4948, allocations: 16.23 kB / 371.6 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.4949, allocations: 0 / 371.6 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.4949, allocations: 4 kB / 371.6 MB, free: 4.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4951, allocations: 35.86 kB / 371.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.4952, allocations: 4 kB / 371.7 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.4953, allocations: 11.91 kB / 371.7 MB, free: 4.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.203e-05/0.4954, allocations: 15.98 kB / 371.7 MB, free: 4.156 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.0001448/0.4956, allocations: 127.8 kB / 371.8 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003652/0.4959, allocations: 153.3 kB / 372 MB, free: 3.867 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.496, allocations: 15.86 kB / 372 MB, free: 3.852 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005101/0.4965, allocations: 170.3 kB / 372.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.4965, allocations: 0 / 372.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.4965, allocations: 0 / 372.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.4966, allocations: 0 / 372.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4977, allocations: 0.5296 MB / 372.7 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4977, allocations: 3.984 kB / 372.7 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.4978, allocations: 15.94 kB / 372.7 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.4978, allocations: 4 kB / 372.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.4979, allocations: 0 / 372.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.4979, allocations: 0 / 372.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4979, allocations: 3.984 kB / 372.7 MB, free: 3.074 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.4983, allocations: 251.3 kB / 373 MB, free: 2.812 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.262e-05/0.4984, allocations: 96.92 kB / 373.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.549e-05/0.4985, allocations: 0 / 373.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.4986, allocations: 7.984 kB / 373.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.838e-05/0.4987, allocations: 19.91 kB / 373.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.4988, allocations: 12 kB / 373.1 MB, free: 2.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.867e-05/0.4989, allocations: 96.19 kB / 373.2 MB, free: 2.566 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.354e-06/0.4989, allocations: 0 / 373.2 MB, free: 2.566 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004902/0.4994, allocations: 39.88 kB / 373.2 MB, free: 2.527 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.0009495/0.5004, allocations: 0.802 MB / 374 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004414/0.5008, allocations: 152.5 kB / 374.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5008, allocations: 0 / 374.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.501, allocations: 79.86 kB / 374.3 MB, free: 1.469 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.5014, allocations: 15.3 kB / 374.3 MB, free: 1.457 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009562/0.5023, allocations: 297.1 kB / 374.6 MB, free: 1.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.5028, allocations: 0.7362 MB / 375.3 MB, free: 368 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.503, allocations: 63.41 kB / 375.4 MB, free: 304 kB / 314.7 MB Notification: Performance of SimCode: time 9.52e-07/0.503, allocations: 4 kB / 375.4 MB, free: 300 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.612/3.115, allocations: 3.034 MB / 378.4 MB, free: 13.26 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat