Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.196/2.196, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.585e-05/2.598e-05, allocations: 3.688 kB / 249.8 MB, free: 5.273 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.0978, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4944/0.5923, allocations: 93.72 MB / 388 MB, free: 4.312 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.5926, allocations: 81.17 kB / 388.1 MB, free: 4.301 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1434/0.736, allocations: 29.88 MB / 418 MB, free: 3.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.7361, allocations: 0 / 418 MB, free: 3.469 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001327/0.7362, allocations: 24 kB / 418 MB, free: 3.445 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.00486/0.7411, allocations: 1.358 MB / 419.4 MB, free: 2.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.923e-05/0.7412, allocations: 8.031 kB / 419.4 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.7425, allocations: 202.5 kB / 419.6 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003011/0.7455, allocations: 0.8354 MB / 420.4 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/0.7458, allocations: 75.84 kB / 420.5 MB, free: 1.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002744/0.7461, allocations: 71.41 kB / 420.5 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002301/0.7484, allocations: 0.6354 MB / 421.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002832/0.7513, allocations: 0.9348 MB / 422.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.695e-05/0.7513, allocations: 3.562 kB / 422.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.7515, allocations: 7.953 kB / 422.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.05e-05/0.7515, allocations: 24 kB / 422.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.762, allocations: 3.7 MB / 425.8 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/0.7647, allocations: 0.5212 MB / 426.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007094/0.7655, allocations: 225.9 kB / 426.6 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.687e-05/0.7656, allocations: 8.562 kB / 426.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007674/0.7664, allocations: 254.9 kB / 426.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 5.08e-06/0.7664, allocations: 0 / 426.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.005063/0.7715, allocations: 1.405 MB / 428.3 MB, free: 10.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002866/0.7718, allocations: 481.4 kB / 428.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.7738, allocations: 0.7171 MB / 429.4 MB, free: 9.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001851/0.774, allocations: 29.7 kB / 429.5 MB, free: 9.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008789/0.7749, allocations: 0.6566 MB / 430.1 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003737/0.7753, allocations: 220.7 kB / 430.3 MB, free: 9.043 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.7754, allocations: 7.938 kB / 430.3 MB, free: 9.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.7756, allocations: 345.9 kB / 430.7 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007023/0.7763, allocations: 198.6 kB / 430.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.7775, allocations: 0.6482 MB / 431.5 MB, free: 7.645 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009593/0.7785, allocations: 300.3 kB / 431.8 MB, free: 7.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/0.7785, allocations: 4 kB / 431.8 MB, free: 7.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00358/0.7821, allocations: 0.9462 MB / 432.8 MB, free: 6.387 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.609e-05/0.7822, allocations: 63.41 kB / 432.8 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.7823, allocations: 12 kB / 432.8 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.7835, allocations: 181.7 kB / 433 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.7853, allocations: 215.7 kB / 433.2 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007182/0.7925, allocations: 3.413 MB / 436.6 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.7943, allocations: 55.94 kB / 436.7 MB, free: 2.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.7944, allocations: 51.98 kB / 436.8 MB, free: 2.148 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003165/0.7948, allocations: 144.8 kB / 436.9 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002271/0.797, allocations: 0.6009 MB / 437.5 MB, free: 1.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.7974, allocations: 106.7 kB / 437.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/0.7998, allocations: 0.6243 MB / 438.2 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.7999, allocations: 4 kB / 438.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-05/0.7999, allocations: 7.953 kB / 438.2 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002171/0.8021, allocations: 0.8904 MB / 439.1 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005108/0.8072, allocations: 1.587 MB / 440.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/0.8073, allocations: 0 / 440.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.8085, allocations: 120 kB / 440.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008692/0.8094, allocations: 125.6 kB / 441 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.8095, allocations: 7.984 kB / 441 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005556/0.8151, allocations: 3.16 MB / 444.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.8152, allocations: 0 / 444.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.8184, allocations: 1.032 MB / 445.2 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008122/0.8192, allocations: 239.7 kB / 445.4 MB, free: 8.945 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.8195, allocations: 8 kB / 445.4 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.8208, allocations: 31.97 kB / 445.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.8211, allocations: 60.42 kB / 445.5 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/0.8211, allocations: 19.98 kB / 445.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001378/0.8225, allocations: 0.5326 MB / 446 MB, free: 8.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8226, allocations: 0 / 446 MB, free: 8.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002221/0.8248, allocations: 296.1 kB / 446.3 MB, free: 7.992 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * 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 (53): * Single equations (assignments): 49 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004309/0.8292, allocations: 2.262 MB / 448.6 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.8326, allocations: 0.9587 MB / 449.5 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/0.8326, allocations: 5 kB / 449.6 MB, free: 4.656 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.8341, allocations: 497.8 kB / 450 MB, free: 4.148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.8365, allocations: 243.7 kB / 450.3 MB, free: 3.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006658/0.8432, allocations: 1.718 MB / 452 MB, free: 2.125 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.8443, allocations: 1.1 MB / 453.1 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00114/0.8455, allocations: 132.5 kB / 453.2 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.8465, allocations: 443.3 kB / 453.7 MB, free: 436 kB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.8465, allocations: 0 / 453.7 MB, free: 436 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/0.9543, allocations: 23.43 MB / 477.1 MB, free: 9.047 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003817/0.9548, allocations: 163.7 kB / 477.2 MB, free: 8.848 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.134/5.089, allocations: 0 / 477.2 MB, free: 8.848 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat