Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.824/1.824, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.188e-05/3.186e-05, allocations: 4 kB / 219.5 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2803, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1201/0.4005, allocations: 64.82 MB / 323.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.4007, allocations: 67.95 kB / 323.2 MB, free: 12.97 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0109/0.4116, allocations: 2.731 MB / 325.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.4117, allocations: 0 / 325.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.4117, allocations: 11.94 kB / 325.9 MB, free: 10.21 MB / 282.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.001018/0.4127, allocations: 447.5 kB / 326.4 MB, free: 9.719 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/0.4128, allocations: 8.031 kB / 326.4 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.413, allocations: 19.81 kB / 326.4 MB, free: 9.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.4135, allocations: 214.9 kB / 326.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.4136, allocations: 8 kB / 326.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.861e-05/0.4137, allocations: 16 kB / 326.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007176/0.4144, allocations: 148.8 kB / 326.8 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007466/0.4152, allocations: 196.9 kB / 327 MB, free: 9.066 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.4152, allocations: 4 kB / 327 MB, free: 9.062 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.309e-05/0.4153, allocations: 4 kB / 327 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.4153, allocations: 4 kB / 327 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.4177, allocations: 0.6311 MB / 327.6 MB, free: 8.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.4183, allocations: 155.2 kB / 327.8 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.4186, allocations: 69.23 kB / 327.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.066e-05/0.4186, allocations: 4.188 kB / 327.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.419, allocations: 107.5 kB / 327.9 MB, free: 8.027 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.001e-05/0.4191, allocations: 0 / 327.9 MB, free: 8.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007621/0.4199, allocations: 157.2 kB / 328.1 MB, free: 7.867 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.42, allocations: 55.34 kB / 328.2 MB, free: 7.801 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.4202, allocations: 136.4 kB / 328.3 MB, free: 7.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/0.4203, allocations: 33.69 kB / 328.3 MB, free: 7.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.4205, allocations: 198.8 kB / 328.5 MB, free: 7.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.4207, allocations: 59.27 kB / 328.6 MB, free: 7.367 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.4208, allocations: 4 kB / 328.6 MB, free: 7.363 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.421, allocations: 322.8 kB / 328.9 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.4213, allocations: 52.66 kB / 328.9 MB, free: 6.984 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.4216, allocations: 115.8 kB / 329.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.4218, allocations: 55.97 kB / 329.1 MB, free: 6.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4218, allocations: 3.938 kB / 329.1 MB, free: 6.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007676/0.4226, allocations: 209.3 kB / 329.3 MB, free: 6.578 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.4227, allocations: 8.219 kB / 329.3 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.4227, allocations: 8 kB / 329.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.4228, allocations: 0 / 329.3 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.4231, allocations: 31.92 kB / 329.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.068e-05/0.4232, allocations: 4 kB / 329.4 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.4235, allocations: 19.83 kB / 329.4 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.4236, allocations: 8 kB / 329.4 MB, free: 6.5 MB / 282.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.0001867/0.4238, allocations: 124 kB / 329.5 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005164/0.4243, allocations: 153.4 kB / 329.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-05/0.4244, allocations: 11.81 kB / 329.7 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007066/0.4251, allocations: 178.2 kB / 329.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4251, allocations: 3.984 kB / 329.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/0.4252, allocations: 0 / 329.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.4252, allocations: 0 / 329.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.4264, allocations: 0.4991 MB / 330.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4264, allocations: 4 kB / 330.4 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.4266, allocations: 19.92 kB / 330.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4266, allocations: 0 / 330.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.4266, allocations: 0 / 330.4 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4266, allocations: 7.938 kB / 330.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4267, allocations: 0 / 330.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.4271, allocations: 259.2 kB / 330.6 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.443e-05/0.4272, allocations: 92.95 kB / 330.7 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.4272, allocations: 4 kB / 330.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.4274, allocations: 11.98 kB / 330.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.4275, allocations: 15.97 kB / 330.8 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.4275, allocations: 16 kB / 330.8 MB, free: 5.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.026e-05/0.4276, allocations: 95.22 kB / 330.9 MB, free: 4.926 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4276, allocations: 0 / 330.9 MB, free: 4.926 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004437/0.4281, allocations: 35.91 kB / 330.9 MB, free: 4.891 MB / 282.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.0008251/0.4289, allocations: 0.7988 MB / 331.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004396/0.4294, allocations: 155.8 kB / 331.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4294, allocations: 0 / 331.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.4296, allocations: 79.86 kB / 331.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.4299, allocations: 23.97 kB / 332 MB, free: 3.812 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008656/0.4308, allocations: 284.8 kB / 332.2 MB, free: 3.492 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.4311, allocations: 0.7284 MB / 333 MB, free: 2.738 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.4313, allocations: 63.41 kB / 333 MB, free: 2.676 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4313, allocations: 4 kB / 333 MB, free: 2.672 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.371/2.802, allocations: 2.934 MB / 336 MB, free: 15.74 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat