Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.995/1.995, allocations: 225.8 MB / 239.3 MB, free: 1.285 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.861e-05, allocations: 5.094 kB / 292.7 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 50.41 MB / 343.2 MB, free: 9.012 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4599/0.5633, allocations: 111.6 MB / 454.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.5637, allocations: 83.45 kB / 454.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3124/0.8761, allocations: 70.73 MB / 0.5133 GB, free: 10.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.8762, allocations: 0 / 0.5133 GB, free: 10.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002517/0.8764, allocations: 60 kB / 0.5133 GB, free: 10.65 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.007786/0.8842, allocations: 2.419 MB / 0.5157 GB, free: 8.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.8843, allocations: 8.031 kB / 0.5157 GB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/0.8854, allocations: 355 kB / 0.5161 GB, free: 7.812 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/0.8882, allocations: 483.7 kB / 0.5165 GB, free: 7.336 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006714/0.8949, allocations: 1.876 MB / 0.5184 GB, free: 5.406 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002722/0.8953, allocations: 193.2 kB / 0.5185 GB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009041/0.8962, allocations: 267.9 kB / 0.5188 GB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007153/0.9034, allocations: 2.331 MB / 0.5211 GB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.9035, allocations: 15.81 kB / 0.5211 GB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003721/0.9039, allocations: 112 kB / 0.5212 GB, free: 2.375 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-05/0.904, allocations: 68 kB / 0.5213 GB, free: 2.309 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004765/0.9088, allocations: 1.501 MB / 0.5227 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02262/0.9314, allocations: 10.74 MB / 0.5332 GB, free: 5.488 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.9334, allocations: 0.9156 MB / 0.5341 GB, free: 4.488 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008701/0.9343, allocations: 347.6 kB / 0.5344 GB, free: 4.148 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.506e-05/0.9344, allocations: 12.78 kB / 0.5345 GB, free: 4.133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/0.9344, allocations: 43.34 kB / 0.5345 GB, free: 4.082 MB / 426.7 MB Notification: Performance of pre-optimization done (n=83): time 3.336e-06/0.9344, allocations: 0 / 0.5345 GB, free: 4.082 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.006394/0.9408, allocations: 2.242 MB / 0.5367 GB, free: 1.781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.941, allocations: 163 kB / 0.5368 GB, free: 1.582 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/0.9454, allocations: 1.814 MB / 0.5386 GB, free: 15.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001925/0.9457, allocations: 41.7 kB / 0.5386 GB, free: 15.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/0.9474, allocations: 1.474 MB / 0.5401 GB, free: 14.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005071/0.9479, allocations: 343.3 kB / 0.5404 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.948, allocations: 32 kB / 0.5404 GB, free: 13.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.9483, allocations: 381.8 kB / 0.5408 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009818/0.9493, allocations: 332 kB / 0.5411 GB, free: 13.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.951, allocations: 1.197 MB / 0.5423 GB, free: 11.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.9524, allocations: 0.5551 MB / 0.5428 GB, free: 10.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.06e-05/0.9525, allocations: 11.94 kB / 0.5428 GB, free: 10.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004714/0.9572, allocations: 1.713 MB / 0.5445 GB, free: 9.203 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3023/1.259, allocations: 12.47 MB / 0.5567 GB, free: 94.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.662e-05/1.26, allocations: 30.12 kB / 0.5567 GB, free: 94.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/1.261, allocations: 173.1 kB / 0.5569 GB, free: 94.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/1.263, allocations: 417.2 kB / 0.5573 GB, free: 94.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/1.268, allocations: 5.533 MB / 0.5627 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/1.271, allocations: 98.38 kB / 0.5628 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/1.271, allocations: 94.94 kB / 0.5629 GB, free: 89.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.271, allocations: 4.781 kB / 0.5629 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003697/1.275, allocations: 1.479 MB / 0.5643 GB, free: 89.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.875e-05/1.275, allocations: 29.69 kB / 0.5644 GB, free: 89.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006929/1.276, allocations: 171.6 kB / 0.5645 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/1.278, allocations: 410.6 kB / 0.5649 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004255/1.282, allocations: 5.531 MB / 0.5703 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/1.285, allocations: 88.59 kB / 0.5704 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/1.285, allocations: 98.89 kB / 0.5705 GB, free: 84.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00048/1.285, allocations: 237.9 kB / 0.5707 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/1.286, allocations: 229.7 kB / 0.5709 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/1.288, allocations: 0.8798 MB / 0.5718 GB, free: 84.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/1.288, allocations: 9.094 kB / 0.5718 GB, free: 84.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.288, allocations: 3 kB / 0.5718 GB, free: 84.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/1.288, allocations: 7.75 kB / 0.5718 GB, free: 84.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006979/1.295, allocations: 3.039 MB / 0.5748 GB, free: 83.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.295, allocations: 6.953 kB / 0.5748 GB, free: 83.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/1.297, allocations: 165.6 kB / 0.5749 GB, free: 83.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007262/1.297, allocations: 127.3 kB / 0.5751 GB, free: 83.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.759e-05/1.297, allocations: 25.14 kB / 0.5751 GB, free: 83.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004166/1.302, allocations: 5.351 MB / 0.5803 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/1.302, allocations: 12.14 kB / 0.5803 GB, free: 78.53 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/1.305, allocations: 1.889 MB / 0.5822 GB, free: 77.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/1.306, allocations: 376.6 kB / 0.5825 GB, free: 77.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00057/1.307, allocations: 29.45 kB / 0.5826 GB, free: 77.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002464/1.309, allocations: 57.83 kB / 0.5826 GB, free: 77.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/1.31, allocations: 83.5 kB / 0.5827 GB, free: 77.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/1.31, allocations: 37.2 kB / 0.5827 GB, free: 77.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004355/1.314, allocations: 1.341 MB / 0.584 GB, free: 77.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.314, allocations: 0 / 0.584 GB, free: 77.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007449/1.322, allocations: 0.997 MB / 0.585 GB, free: 77.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006164/1.328, allocations: 4.344 MB / 0.5893 GB, free: 74.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006736/1.335, allocations: 2.566 MB / 0.5918 GB, free: 73.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/1.335, allocations: 2.531 kB / 0.5918 GB, free: 73.24 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/1.337, allocations: 0.7598 MB / 0.5925 GB, free: 72.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005722/1.342, allocations: 0.556 MB / 0.593 GB, free: 72.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/1.357, allocations: 3.552 MB / 0.5965 GB, free: 71.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/1.358, allocations: 1.625 MB / 0.5981 GB, free: 70.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004475/1.363, allocations: 408.9 kB / 0.5985 GB, free: 70.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001954/1.365, allocations: 1.03 MB / 0.5995 GB, free: 70.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/1.365, allocations: 0 / 0.5995 GB, free: 70.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1747/1.54, allocations: 54.12 MB / 0.6524 GB, free: 51.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/1.54, allocations: 197.1 kB / 0.6525 GB, free: 51.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.109/6.649, allocations: 4 kB / 0.6525 GB, free: 51.16 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat