Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.215/2.215, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.514e-05, allocations: 3.156 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 44.49 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/0.5848, allocations: 89.52 MB / 383.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.5852, allocations: 74.33 kB / 383.9 MB, free: 5.406 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2139/0.7991, allocations: 43.91 MB / 427.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7991, allocations: 4.438 kB / 427.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001768/0.7993, allocations: 39.94 kB / 427.8 MB, free: 11.8 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005912/0.8052, allocations: 1.6 MB / 429.4 MB, free: 10.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.8053, allocations: 12.02 kB / 429.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00195/0.8073, allocations: 281.5 kB / 429.7 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004679/0.812, allocations: 1.207 MB / 430.9 MB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.776e-05/0.8122, allocations: 52 kB / 431 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000403/0.8126, allocations: 99.89 kB / 431.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003613/0.8162, allocations: 0.8692 MB / 432 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004756/0.821, allocations: 1.217 MB / 433.2 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.831e-05/0.8212, allocations: 11.86 kB / 433.2 MB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001801/0.8213, allocations: 0 / 433.2 MB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.084e-05/0.8214, allocations: 40 kB / 433.2 MB, free: 6.277 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/0.8366, allocations: 6.114 MB / 439.3 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.8389, allocations: 0.5438 MB / 439.9 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.8403, allocations: 402.4 kB / 440.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.4e-05/0.8404, allocations: 8.469 kB / 440.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.8404, allocations: 39.12 kB / 440.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.687e-06/0.8405, allocations: 0 / 440.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.005481/0.8459, allocations: 1.658 MB / 442 MB, free: 13.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.8461, allocations: 123.5 kB / 442.1 MB, free: 13.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.8484, allocations: 0.8975 MB / 443 MB, free: 12.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.8486, allocations: 25.7 kB / 443 MB, free: 12.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.8496, allocations: 0.8597 MB / 443.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003429/0.85, allocations: 252.3 kB / 444.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.09e-05/0.85, allocations: 0 / 444.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.8503, allocations: 353.8 kB / 444.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007307/0.851, allocations: 230.6 kB / 444.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.8522, allocations: 0.6695 MB / 445.4 MB, free: 9.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.8532, allocations: 352.2 kB / 445.7 MB, free: 9.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.489e-05/0.8532, allocations: 4 kB / 445.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003691/0.8569, allocations: 1.064 MB / 446.8 MB, free: 8.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.266e-05/0.857, allocations: 12.59 kB / 446.8 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-05/0.8571, allocations: 16 kB / 446.8 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006647/0.8577, allocations: 114.5 kB / 446.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.8597, allocations: 263.6 kB / 447.2 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005319/0.8651, allocations: 4.069 MB / 451.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.8669, allocations: 36.03 kB / 451.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.867, allocations: 55.98 kB / 451.3 MB, free: 3.199 MB / 346.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.0003627/0.8674, allocations: 164.2 kB / 451.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002366/0.8698, allocations: 0.6808 MB / 452.2 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002923/0.8701, allocations: 134.4 kB / 452.3 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002469/0.8726, allocations: 0.7067 MB / 453 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.8726, allocations: 8.125 kB / 453 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.8726, allocations: 4 kB / 453 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.8727, allocations: 7.984 kB / 453 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006117/0.8788, allocations: 2.004 MB / 455 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.8789, allocations: 8.031 kB / 455 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.8802, allocations: 127.8 kB / 455.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00069/0.8809, allocations: 118.5 kB / 455.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.355e-05/0.881, allocations: 15.92 kB / 455.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005531/0.8865, allocations: 4.157 MB / 459.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.8866, allocations: 4 kB / 459.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003566/0.8902, allocations: 1.351 MB / 460.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007915/0.891, allocations: 259.5 kB / 461.1 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003401/0.8913, allocations: 15.95 kB / 461.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8925, allocations: 27.97 kB / 461.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.8928, allocations: 64.42 kB / 461.2 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.642e-05/0.8929, allocations: 27.92 kB / 461.2 MB, free: 8.695 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00165/0.8945, allocations: 0.6556 MB / 461.9 MB, free: 8.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.8945, allocations: 3.938 kB / 461.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002108/0.8967, allocations: 311.9 kB / 462.2 MB, free: 7.727 MB / 362.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.004824/0.9015, allocations: 3.139 MB / 465.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.9042, allocations: 0.981 MB / 466.3 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.9043, allocations: 4 kB / 466.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.9058, allocations: 0.6287 MB / 466.9 MB, free: 2.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002801/0.9086, allocations: 304.8 kB / 467.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009603/0.9182, allocations: 2.451 MB / 469.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.9196, allocations: 1.253 MB / 470.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001453/0.9211, allocations: 162.8 kB / 471.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/0.9226, allocations: 0.6125 MB / 471.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9226, allocations: 4 kB / 471.7 MB, free: 13.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1143/1.037, allocations: 26.51 MB / 498.2 MB, free: 3.438 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003709/1.037, allocations: 159.5 kB / 498.4 MB, free: 3.246 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.08/5.118, allocations: 0 / 498.4 MB, free: 3.246 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat