Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.228e-05, allocations: 1.562 kB / 292.8 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 50.41 MB / 343.2 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4547/0.5578, allocations: 99.53 MB / 442.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.5582, allocations: 85.25 kB / 442.8 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1143/0.6726, allocations: 27.5 MB / 470.3 MB, free: 3.391 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.6726, allocations: 0 / 470.3 MB, free: 3.391 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.84e-05/0.6728, allocations: 24 kB / 470.3 MB, free: 3.367 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002846/0.6756, allocations: 1.154 MB / 471.4 MB, free: 2.164 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6757, allocations: 8.031 kB / 471.5 MB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003167/0.676, allocations: 152 kB / 471.6 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009959/0.677, allocations: 186.4 kB / 471.8 MB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002725/0.6798, allocations: 0.8437 MB / 472.6 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.843e-05/0.6799, allocations: 74 kB / 472.7 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002688/0.6802, allocations: 103.9 kB / 472.8 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/0.6826, allocations: 0.8913 MB / 473.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/0.6827, allocations: 4 kB / 473.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.6828, allocations: 36 kB / 473.7 MB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.6829, allocations: 28 kB / 473.8 MB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.6846, allocations: 0.5701 MB / 474.3 MB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009991/0.6946, allocations: 4.173 MB / 478.5 MB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.6961, allocations: 347.2 kB / 478.8 MB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/0.6966, allocations: 144.8 kB / 479 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.076e-05/0.6966, allocations: 7.984 kB / 479 MB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.6967, allocations: 38.56 kB / 479 MB, free: 10.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 3.466e-06/0.6967, allocations: 3.938 kB / 479 MB, free: 10.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.00313/0.6999, allocations: 1.048 MB / 480.1 MB, free: 9.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.7, allocations: 85.11 kB / 480.2 MB, free: 9.023 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.7018, allocations: 0.737 MB / 480.9 MB, free: 8.262 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.7019, allocations: 33.7 kB / 480.9 MB, free: 8.223 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006648/0.7026, allocations: 0.5992 MB / 481.5 MB, free: 7.613 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.7028, allocations: 145.9 kB / 481.7 MB, free: 7.469 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.7029, allocations: 16 kB / 481.7 MB, free: 7.453 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.7031, allocations: 334 kB / 482 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.7035, allocations: 141.6 kB / 482.2 MB, free: 6.984 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006985/0.7042, allocations: 465.1 kB / 482.6 MB, free: 6.383 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.7049, allocations: 224.1 kB / 482.8 MB, free: 6.164 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.7049, allocations: 0 / 482.8 MB, free: 6.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002009/0.7069, allocations: 0.681 MB / 483.5 MB, free: 5.473 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002116/0.7091, allocations: 4.095 MB / 487.6 MB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/0.7092, allocations: 16 kB / 487.6 MB, free: 1.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002974/0.7095, allocations: 32.86 kB / 487.7 MB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.7108, allocations: 167.7 kB / 487.8 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.7123, allocations: 1.288 MB / 489.1 MB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.7136, allocations: 35.91 kB / 489.1 MB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.7137, allocations: 35.98 kB / 489.2 MB, free: 15.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.7137, allocations: 4 kB / 489.2 MB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001692/0.7155, allocations: 0.5676 MB / 489.7 MB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.7155, allocations: 12 kB / 489.8 MB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001763/0.7157, allocations: 40.81 kB / 489.8 MB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.7169, allocations: 167.7 kB / 490 MB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.7183, allocations: 1.288 MB / 491.3 MB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.7194, allocations: 31.89 kB / 491.3 MB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.7196, allocations: 39.94 kB / 491.3 MB, free: 13.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002749/0.7198, allocations: 152.7 kB / 491.5 MB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.7201, allocations: 94.83 kB / 491.6 MB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.7213, allocations: 395.8 kB / 491.9 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.7214, allocations: 4 kB / 492 MB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7214, allocations: 3.938 kB / 492 MB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.7214, allocations: 7.922 kB / 492 MB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.7248, allocations: 1.294 MB / 493.3 MB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.7248, allocations: 0 / 493.3 MB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.7256, allocations: 79.89 kB / 493.3 MB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001439/0.7257, allocations: 21.06 kB / 493.4 MB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.7258, allocations: 19.95 kB / 493.4 MB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.727, allocations: 1.272 MB / 494.6 MB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.7271, allocations: 8.094 kB / 494.7 MB, free: 9.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.7286, allocations: 0.7334 MB / 495.4 MB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004515/0.7291, allocations: 204 kB / 495.6 MB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.7293, allocations: 12 kB / 495.6 MB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.73, allocations: 15.98 kB / 495.6 MB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.7301, allocations: 27.97 kB / 495.6 MB, free: 8.406 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-05/0.7302, allocations: 16.11 kB / 495.7 MB, free: 8.391 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001234/0.7314, allocations: 0.5665 MB / 496.2 MB, free: 7.809 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.7314, allocations: 0 / 496.2 MB, free: 7.809 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001974/0.7334, allocations: 391.9 kB / 496.6 MB, free: 7.426 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002536/0.736, allocations: 1.964 MB / 498.6 MB, free: 5.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.7383, allocations: 0.9129 MB / 499.5 MB, free: 4.457 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.7383, allocations: 0 / 499.5 MB, free: 4.457 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.7389, allocations: 257.6 kB / 499.7 MB, free: 4.195 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.7407, allocations: 218.8 kB / 500 MB, free: 3.984 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004662/0.7454, allocations: 1.496 MB / 0.4897 GB, free: 2.422 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008466/0.7463, allocations: 1.046 MB / 0.4907 GB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001305/0.7476, allocations: 167.4 kB / 0.4909 GB, free: 1.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007213/0.7484, allocations: 387.3 kB / 0.4912 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7484, allocations: 0 / 0.4912 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07127/0.8197, allocations: 21.81 MB / 0.5125 GB, free: 11.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003337/0.8201, allocations: 205.7 kB / 0.5127 GB, free: 11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.417/4.237, allocations: 7.75 kB / 0.5127 GB, free: 11 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat