Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.255e-05/3.264e-05, allocations: 0 / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.0958, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4447/0.5406, allocations: 89.86 MB / 389.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003617/0.541, allocations: 82.39 kB / 389.9 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1904/0.7315, allocations: 40.61 MB / 430.5 MB, free: 15.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.7315, allocations: 3.906 kB / 430.5 MB, free: 15.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001924/0.7317, allocations: 39.03 kB / 430.5 MB, free: 15.62 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006541/0.7383, allocations: 1.547 MB / 432.1 MB, free: 14.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/0.7384, allocations: 7.5 kB / 432.1 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009622/0.7394, allocations: 220.9 kB / 432.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002134/0.7415, allocations: 270 kB / 432.6 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/0.7466, allocations: 1.097 MB / 433.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.7469, allocations: 122.7 kB / 433.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006307/0.7475, allocations: 155.1 kB / 433.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006005/0.7536, allocations: 1.402 MB / 435.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001386/0.7538, allocations: 15.83 kB / 435.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002966/0.7541, allocations: 67.12 kB / 435.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.21e-05/0.7542, allocations: 36 kB / 435.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004865/0.7591, allocations: 0.8878 MB / 436.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.7791, allocations: 6.649 MB / 443 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.7806, allocations: 371.4 kB / 443.4 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007587/0.7814, allocations: 198.2 kB / 443.6 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.127e-05/0.7815, allocations: 8.438 kB / 443.6 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008516/0.7824, allocations: 248.8 kB / 443.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 4.699e-06/0.7824, allocations: 0 / 443.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.006326/0.7887, allocations: 1.631 MB / 445.4 MB, free: 4.223 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.789, allocations: 192.4 kB / 445.6 MB, free: 3.988 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/0.7928, allocations: 1.069 MB / 446.7 MB, free: 2.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.793, allocations: 37.7 kB / 446.7 MB, free: 2.863 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.7943, allocations: 0.8494 MB / 447.6 MB, free: 2.012 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.7947, allocations: 209 kB / 447.8 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.7948, allocations: 24 kB / 447.8 MB, free: 1.785 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.7951, allocations: 354.7 kB / 448.2 MB, free: 1.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009059/0.796, allocations: 214.6 kB / 448.4 MB, free: 1.219 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.7976, allocations: 0.7775 MB / 449.1 MB, free: 164 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.799, allocations: 380.6 kB / 449.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.428e-05/0.7991, allocations: 8 kB / 449.5 MB, free: 15.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.004208/0.8033, allocations: 0.9988 MB / 450.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.8035, allocations: 41.7 kB / 450.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.79e-05/0.8036, allocations: 24.12 kB / 450.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.8041, allocations: 65.7 kB / 450.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/0.8065, allocations: 267.6 kB / 450.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003715/0.8102, allocations: 2.572 MB / 453.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.8122, allocations: 71.97 kB / 453.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002372/0.8125, allocations: 67.94 kB / 453.6 MB, free: 11.38 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003342/0.8128, allocations: 188.5 kB / 453.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.8132, allocations: 134.3 kB / 453.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.8149, allocations: 0.5136 MB / 454.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.815, allocations: 8 kB / 454.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.815, allocations: 8 kB / 454.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.815, allocations: 3.984 kB / 454.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/0.8202, allocations: 1.883 MB / 456.4 MB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.8203, allocations: 4 kB / 456.4 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009309/0.8213, allocations: 103.8 kB / 456.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003584/0.8217, allocations: 45.69 kB / 456.5 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.8218, allocations: 16 kB / 456.5 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002734/0.8245, allocations: 2.541 MB / 459.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/0.8246, allocations: 7.938 kB / 459.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00245/0.827, allocations: 1.079 MB / 460.1 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.828, allocations: 251.4 kB / 460.4 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/0.8283, allocations: 16 kB / 460.4 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8294, allocations: 35.97 kB / 460.4 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.8297, allocations: 59.83 kB / 460.5 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-05/0.8298, allocations: 20.12 kB / 460.5 MB, free: 3.875 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002408/0.8322, allocations: 0.7896 MB / 461.3 MB, free: 3.082 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.8323, allocations: 0 / 461.3 MB, free: 3.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002427/0.8347, allocations: 340 kB / 461.6 MB, free: 2.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003799/0.8386, allocations: 2.852 MB / 464.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.8409, allocations: 0.8371 MB / 465.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.8409, allocations: 0 / 465.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.842, allocations: 427 kB / 465.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002796/0.8448, allocations: 315.8 kB / 466.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007884/0.8528, allocations: 2.153 MB / 468.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/0.854, allocations: 1.209 MB / 469.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/0.8553, allocations: 0.593 MB / 470 MB, free: 10.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.363e-06/0.8554, allocations: 0 / 470 MB, free: 10.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.458/4.313, allocations: 37.48 MB / 0.4956 GB, free: 4.605 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat