Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.686/1.686, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.108e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2609, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.4139, allocations: 88 MB / 351.8 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.4143, allocations: 83.89 kB / 351.9 MB, free: 1.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3673/0.7815, allocations: 28.22 MB / 380.1 MB, free: 84.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7816, allocations: 0 / 380.1 MB, free: 84.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.693e-05/0.7817, allocations: 20.88 kB / 380.2 MB, free: 84.18 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00296/0.7847, allocations: 1.115 MB / 381.3 MB, free: 83.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.7847, allocations: 6.969 kB / 381.3 MB, free: 83.52 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000356/0.7851, allocations: 150.2 kB / 381.4 MB, free: 83.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.7862, allocations: 188.2 kB / 381.6 MB, free: 83.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.7886, allocations: 0.7883 MB / 382.4 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.76e-05/0.7887, allocations: 75.38 kB / 382.5 MB, free: 83.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000211/0.7889, allocations: 103.6 kB / 382.6 MB, free: 83.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.7912, allocations: 0.889 MB / 383.5 MB, free: 82.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.383e-05/0.7913, allocations: 6.391 kB / 383.5 MB, free: 82.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.7914, allocations: 43 kB / 383.5 MB, free: 82.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/0.7915, allocations: 30.19 kB / 383.5 MB, free: 82.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.7932, allocations: 0.5913 MB / 384.1 MB, free: 82.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007796/0.801, allocations: 3.908 MB / 388 MB, free: 79.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008793/0.802, allocations: 435 kB / 388.5 MB, free: 79.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006892/0.8027, allocations: 242.7 kB / 388.7 MB, free: 79.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.413e-05/0.8028, allocations: 3.688 kB / 388.7 MB, free: 79.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.8028, allocations: 38.34 kB / 388.7 MB, free: 79.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 3.297e-06/0.8028, allocations: 0 / 388.7 MB, free: 79.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003119/0.806, allocations: 1.208 MB / 389.9 MB, free: 78.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.8061, allocations: 84.23 kB / 390 MB, free: 78.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.8074, allocations: 0.6852 MB / 390.7 MB, free: 78.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.176e-05/0.8075, allocations: 37.52 kB / 390.7 MB, free: 78.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.8079, allocations: 0.5643 MB / 391.3 MB, free: 77.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.808, allocations: 170 kB / 391.5 MB, free: 77.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.8081, allocations: 11.25 kB / 391.5 MB, free: 77.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.8082, allocations: 342.9 kB / 391.8 MB, free: 77.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003892/0.8086, allocations: 148.8 kB / 392 MB, free: 77.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005184/0.8091, allocations: 450.7 kB / 392.4 MB, free: 76.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.8097, allocations: 231.6 kB / 392.6 MB, free: 76.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.8097, allocations: 3.344 kB / 392.6 MB, free: 76.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001616/0.8113, allocations: 0.7008 MB / 393.3 MB, free: 76.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.8114, allocations: 8.75 kB / 393.3 MB, free: 76.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.8114, allocations: 7.969 kB / 393.4 MB, free: 76.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004569/0.8119, allocations: 99.22 kB / 393.5 MB, free: 76.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009633/0.8128, allocations: 157.7 kB / 393.6 MB, free: 76.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/0.8156, allocations: 3 MB / 396.6 MB, free: 73.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.8167, allocations: 35.62 kB / 396.6 MB, free: 73.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.8168, allocations: 36 kB / 396.7 MB, free: 73.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.817, allocations: 154.2 kB / 396.8 MB, free: 72.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.8172, allocations: 90.92 kB / 396.9 MB, free: 72.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.8185, allocations: 494.5 kB / 397.4 MB, free: 72.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.8185, allocations: 4 kB / 397.4 MB, free: 72.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.8186, allocations: 0 / 397.4 MB, free: 72.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.8186, allocations: 7.844 kB / 397.4 MB, free: 72.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.8216, allocations: 1.43 MB / 398.8 MB, free: 71.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.8217, allocations: 4 kB / 398.8 MB, free: 71.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000607/0.8223, allocations: 71.2 kB / 398.9 MB, free: 71.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003867/0.8227, allocations: 91.98 kB / 399 MB, free: 71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.392e-05/0.8227, allocations: 12 kB / 399 MB, free: 70.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002641/0.8254, allocations: 2.977 MB / 402 MB, free: 67.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.8254, allocations: 4 kB / 402 MB, free: 67.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.8271, allocations: 0.8522 MB / 402.8 MB, free: 66.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.8276, allocations: 200.5 kB / 403 MB, free: 66.72 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.8278, allocations: 11.33 kB / 403.1 MB, free: 66.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007452/0.8286, allocations: 30.95 kB / 403.1 MB, free: 66.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.8287, allocations: 33.78 kB / 403.1 MB, free: 66.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.8288, allocations: 16 kB / 403.1 MB, free: 66.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009922/0.8298, allocations: 0.52 MB / 403.7 MB, free: 66.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8298, allocations: 0 / 403.7 MB, free: 66.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001403/0.8312, allocations: 247.6 kB / 403.9 MB, free: 65.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002333/0.8336, allocations: 2.083 MB / 406 MB, free: 63.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.835, allocations: 0.6709 MB / 406.6 MB, free: 63.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.8351, allocations: 0.6875 kB / 406.6 MB, free: 63.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.8359, allocations: 452.1 kB / 407.1 MB, free: 62.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.8377, allocations: 201.7 kB / 407.3 MB, free: 62.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004451/0.8422, allocations: 1.469 MB / 408.8 MB, free: 61.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.8428, allocations: 1.032 MB / 409.8 MB, free: 60.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006754/0.8435, allocations: 383.3 kB / 410.2 MB, free: 59.92 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8435, allocations: 0 / 410.2 MB, free: 59.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.909/3.752, allocations: 25.36 MB / 435.5 MB, free: 35.05 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat