Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.437e-05/2.454e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.324, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.4676, allocations: 84.39 MB / 342.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.4679, allocations: 79.95 kB / 342.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3762/0.8441, allocations: 42.23 MB / 385 MB, free: 81.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.8441, allocations: 0 / 385 MB, free: 81.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001078/0.8443, allocations: 34.94 kB / 385.1 MB, free: 81.27 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003547/0.8478, allocations: 1.6 MB / 386.7 MB, free: 80.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.8479, allocations: 7.875 kB / 386.7 MB, free: 80.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.8491, allocations: 288.8 kB / 386.9 MB, free: 80.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.8522, allocations: 1.2 MB / 388.1 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.8523, allocations: 49.44 kB / 388.2 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002663/0.8526, allocations: 94.16 kB / 388.3 MB, free: 79.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002306/0.8549, allocations: 0.8838 MB / 389.2 MB, free: 79.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.8577, allocations: 1.221 MB / 390.4 MB, free: 78.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.37e-05/0.8578, allocations: 7.844 kB / 390.4 MB, free: 78.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.8579, allocations: 3.562 kB / 390.4 MB, free: 78.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.858, allocations: 35.34 kB / 390.4 MB, free: 78.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.8681, allocations: 6.131 MB / 396.6 MB, free: 74.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.8696, allocations: 0.5429 MB / 397.1 MB, free: 74.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009533/0.8706, allocations: 395.3 kB / 397.5 MB, free: 74.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.656e-05/0.8707, allocations: 7.219 kB / 397.5 MB, free: 74.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.8707, allocations: 37.78 kB / 397.5 MB, free: 74.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.066e-06/0.8707, allocations: 4 kB / 397.5 MB, free: 74.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.003882/0.8746, allocations: 1.673 MB / 399.2 MB, free: 73.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.8747, allocations: 114.4 kB / 399.3 MB, free: 73.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/0.8762, allocations: 0.8932 MB / 400.2 MB, free: 72.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.037e-05/0.8763, allocations: 25.7 kB / 400.2 MB, free: 72.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004967/0.8768, allocations: 0.8537 MB / 401.1 MB, free: 71.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.877, allocations: 248.9 kB / 401.3 MB, free: 71.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.8771, allocations: 4 kB / 401.3 MB, free: 71.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.325e-05/0.8772, allocations: 353.2 kB / 401.7 MB, free: 71.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.8777, allocations: 230.6 kB / 401.9 MB, free: 71.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007686/0.8785, allocations: 0.6752 MB / 402.6 MB, free: 70.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007408/0.8793, allocations: 356.1 kB / 402.9 MB, free: 69.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.8793, allocations: 11.88 kB / 403 MB, free: 69.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002492/0.8818, allocations: 0.9939 MB / 403.9 MB, free: 68.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.8818, allocations: 15.98 kB / 404 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.8819, allocations: 15.98 kB / 404 MB, free: 68.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005759/0.8825, allocations: 122.8 kB / 404.1 MB, free: 68.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.8841, allocations: 263.6 kB / 404.4 MB, free: 68.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003384/0.8875, allocations: 4.065 MB / 408.4 MB, free: 64.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.8891, allocations: 43.94 kB / 408.5 MB, free: 63.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.8892, allocations: 52 kB / 408.5 MB, free: 63.92 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000293/0.8895, allocations: 152.5 kB / 408.7 MB, free: 63.77 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001789/0.8913, allocations: 0.6848 MB / 409.3 MB, free: 63.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.8916, allocations: 134.4 kB / 409.5 MB, free: 62.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.8935, allocations: 0.7146 MB / 410.2 MB, free: 62.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.8935, allocations: 8 kB / 410.2 MB, free: 62.19 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8935, allocations: 0 / 410.2 MB, free: 62.19 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.8936, allocations: 3.984 kB / 410.2 MB, free: 62.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004527/0.8981, allocations: 2.032 MB / 412.2 MB, free: 60.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.8981, allocations: 4 kB / 412.2 MB, free: 60.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.8992, allocations: 136.2 kB / 412.4 MB, free: 59.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.8997, allocations: 110.5 kB / 412.5 MB, free: 59.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/0.8998, allocations: 8 kB / 412.5 MB, free: 59.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00361/0.9034, allocations: 4.171 MB / 416.7 MB, free: 55.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/0.9035, allocations: 11.94 kB / 416.7 MB, free: 55.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.9061, allocations: 1.37 MB / 418 MB, free: 53.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006078/0.9067, allocations: 255.6 kB / 418.3 MB, free: 53.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.907, allocations: 15.94 kB / 418.3 MB, free: 53.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.908, allocations: 35.97 kB / 418.3 MB, free: 53.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.9082, allocations: 56.42 kB / 418.4 MB, free: 53.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.458e-05/0.9083, allocations: 31.95 kB / 418.4 MB, free: 53.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001191/0.9095, allocations: 0.6595 MB / 419.1 MB, free: 52.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9095, allocations: 0 / 419.1 MB, free: 52.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001803/0.9113, allocations: 304 kB / 419.4 MB, free: 52.42 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003257/0.9146, allocations: 3.159 MB / 422.5 MB, free: 49.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.9165, allocations: 0.9831 MB / 423.5 MB, free: 48.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.9165, allocations: 0 / 423.5 MB, free: 48.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009855/0.9175, allocations: 0.6268 MB / 424.2 MB, free: 47.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.9199, allocations: 292.5 kB / 424.4 MB, free: 47.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007483/0.9274, allocations: 2.5 MB / 426.9 MB, free: 44.6 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008147/0.9283, allocations: 1.245 MB / 428.2 MB, free: 43.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/0.9294, allocations: 0.6203 MB / 428.8 MB, free: 42.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9295, allocations: 0 / 428.8 MB, free: 42.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.263/4.193, allocations: 45.96 MB / 474.8 MB, free: 12.69 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat