Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 194.9 MB / 208.4 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.538e-05, allocations: 0 / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09851/0.09859, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.513/0.6117, allocations: 93.9 MB / 393.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.612, allocations: 79.75 kB / 393.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1108/0.7229, allocations: 28.55 MB / 422.5 MB, free: 3.488 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7229, allocations: 0 / 422.5 MB, free: 3.488 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.548e-05/0.723, allocations: 26.91 kB / 422.5 MB, free: 3.484 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002627/0.7256, allocations: 1.14 MB / 423.6 MB, free: 2.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.7257, allocations: 14.98 kB / 423.6 MB, free: 2.691 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002879/0.726, allocations: 147.7 kB / 423.8 MB, free: 2.633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009918/0.727, allocations: 201.3 kB / 424 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002245/0.7293, allocations: 0.8029 MB / 424.8 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.082e-05/0.7294, allocations: 75.66 kB / 424.9 MB, free: 2.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.7296, allocations: 98.44 kB / 425 MB, free: 2.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.7317, allocations: 0.9018 MB / 425.9 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.901e-05/0.7318, allocations: 3.906 kB / 425.9 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.7319, allocations: 45.75 kB / 425.9 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.827e-05/0.732, allocations: 27.12 kB / 425.9 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.7336, allocations: 0.5921 MB / 426.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007562/0.7412, allocations: 3.943 MB / 430.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009015/0.7422, allocations: 437.9 kB / 430.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007484/0.743, allocations: 253.1 kB / 431.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-05/0.743, allocations: 7.875 kB / 431.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.7431, allocations: 37.94 kB / 431.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 4.048e-06/0.7431, allocations: 0 / 431.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.003284/0.7464, allocations: 1.221 MB / 432.4 MB, free: 14.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.7465, allocations: 87.89 kB / 432.5 MB, free: 14.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.7478, allocations: 0.6919 MB / 433.2 MB, free: 14.37 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/0.7479, allocations: 36.7 kB / 433.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004413/0.7484, allocations: 0.5761 MB / 433.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.7486, allocations: 165.2 kB / 434 MB, free: 13.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.7486, allocations: 17.84 kB / 434 MB, free: 13.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.7488, allocations: 336.8 kB / 434.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.7492, allocations: 158.4 kB / 434.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006143/0.7498, allocations: 451.3 kB / 434.9 MB, free: 13.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005403/0.7504, allocations: 233.3 kB / 435.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.7504, allocations: 7.969 kB / 435.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001739/0.7521, allocations: 0.7088 MB / 435.8 MB, free: 12.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.7522, allocations: 8 kB / 435.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.7522, allocations: 15.94 kB / 435.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/0.7527, allocations: 94.27 kB / 436 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.7538, allocations: 166.7 kB / 436.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003432/0.7573, allocations: 2.997 MB / 439.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.7584, allocations: 39.7 kB / 439.2 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.7585, allocations: 33.69 kB / 439.2 MB, free: 9.438 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002178/0.7588, allocations: 163.1 kB / 439.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.759, allocations: 90.95 kB / 439.4 MB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.7604, allocations: 0.4937 MB / 439.9 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.7604, allocations: 4 kB / 439.9 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.7604, allocations: 4 kB / 439.9 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.7605, allocations: 3.938 kB / 439.9 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003403/0.7639, allocations: 1.448 MB / 441.4 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.7639, allocations: 4 kB / 441.4 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.7646, allocations: 82.8 kB / 441.5 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004389/0.7651, allocations: 81.8 kB / 441.6 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/0.7651, allocations: 9.125 kB / 441.6 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003327/0.7685, allocations: 2.984 MB / 444.6 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.7685, allocations: 8.062 kB / 444.6 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.7705, allocations: 0.876 MB / 445.4 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005057/0.7711, allocations: 201.9 kB / 445.6 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.7713, allocations: 10.25 kB / 445.6 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007896/0.7721, allocations: 29.48 kB / 445.7 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.7722, allocations: 41.08 kB / 445.7 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.201e-05/0.7723, allocations: 25.38 kB / 445.7 MB, free: 3.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.7736, allocations: 0.5279 MB / 446.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7736, allocations: 0 / 446.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001538/0.7752, allocations: 247.9 kB / 446.5 MB, free: 2.824 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003037/0.7782, allocations: 2.09 MB / 448.6 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.78, allocations: 0.688 MB / 449.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.78, allocations: 4 kB / 449.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.7811, allocations: 449.5 kB / 449.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.7828, allocations: 215.2 kB / 449.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.7878, allocations: 1.477 MB / 451.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008351/0.7886, allocations: 1.04 MB / 452.5 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000856/0.7895, allocations: 387.3 kB / 452.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7895, allocations: 0 / 452.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.142/3.932, allocations: 25.86 MB / 478.7 MB, free: 2.43 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat