Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.418e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09034, allocations: 44.51 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4342/0.5246, allocations: 88.6 MB / 388.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.5249, allocations: 82.83 kB / 388.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09002/0.615, allocations: 22.94 MB / 411.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.615, allocations: 0 / 411.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.6151, allocations: 22.94 kB / 411.6 MB, free: 6.363 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002215/0.6173, allocations: 0.9769 MB / 412.5 MB, free: 5.652 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.6174, allocations: 7.625 kB / 412.6 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002898/0.6177, allocations: 129.7 kB / 412.7 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007769/0.6185, allocations: 144.3 kB / 412.8 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.6205, allocations: 0.6775 MB / 413.5 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.591e-05/0.6206, allocations: 54.84 kB / 413.6 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.6208, allocations: 76.69 kB / 413.6 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.6227, allocations: 0.7487 MB / 414.4 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-05/0.6228, allocations: 3.906 kB / 414.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.6229, allocations: 32.97 kB / 414.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.6229, allocations: 19.5 kB / 414.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.6243, allocations: 487.9 kB / 414.9 MB, free: 4.895 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006397/0.6307, allocations: 3.454 MB / 418.4 MB, free: 2.641 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005507/0.6313, allocations: 211.4 kB / 418.6 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.6316, allocations: 94.45 kB / 418.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.6316, allocations: 3.906 kB / 418.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.6317, allocations: 37.84 kB / 418.7 MB, free: 2.551 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.336e-06/0.6317, allocations: 0 / 418.7 MB, free: 2.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.002006/0.6337, allocations: 0.8098 MB / 419.5 MB, free: 2.074 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.6338, allocations: 89.11 kB / 419.6 MB, free: 1.973 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.6349, allocations: 0.6223 MB / 420.2 MB, free: 1.781 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.635, allocations: 28.64 kB / 420.3 MB, free: 1.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.6354, allocations: 0.5158 MB / 420.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.6355, allocations: 102.6 kB / 420.9 MB, free: 1.324 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.6355, allocations: 7.625 kB / 420.9 MB, free: 1.324 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.708e-05/0.6356, allocations: 337.4 kB / 421.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.6359, allocations: 101.9 kB / 421.3 MB, free: 1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.6363, allocations: 401.7 kB / 421.7 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.6367, allocations: 182.9 kB / 421.9 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.6368, allocations: 3.875 kB / 421.9 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001161/0.6379, allocations: 0.5295 MB / 422.4 MB, free: 416 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.638, allocations: 10.16 kB / 422.4 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.638, allocations: 11.62 kB / 422.4 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.6383, allocations: 39.22 kB / 422.5 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008365/0.6391, allocations: 151.7 kB / 422.6 MB, free: 364 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.6405, allocations: 1.286 MB / 423.9 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009252/0.6414, allocations: 32.86 kB / 423.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.6415, allocations: 34.41 kB / 424 MB, free: 15.05 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0001932/0.6417, allocations: 149.8 kB / 424.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.6419, allocations: 73.84 kB / 424.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008212/0.6427, allocations: 294 kB / 424.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.6428, allocations: 3.875 kB / 424.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.6428, allocations: 0 / 424.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.6428, allocations: 3.938 kB / 424.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.6452, allocations: 1.048 MB / 425.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.6453, allocations: 3.938 kB / 425.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005318/0.6458, allocations: 66.5 kB / 425.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001497/0.646, allocations: 20.62 kB / 425.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.646, allocations: 10.44 kB / 425.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.6473, allocations: 1.273 MB / 426.9 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.6473, allocations: 3.953 kB / 426.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.6485, allocations: 0.5733 MB / 427.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.6489, allocations: 184.8 kB / 427.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.649, allocations: 7.188 kB / 427.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.6496, allocations: 18.95 kB / 427.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.739e-05/0.6497, allocations: 30.88 kB / 427.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.6498, allocations: 11.69 kB / 427.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008666/0.6506, allocations: 476.5 kB / 428.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6506, allocations: 0 / 428.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001032/0.6517, allocations: 195.5 kB / 428.4 MB, free: 12.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.001972/0.6537, allocations: 1.793 MB / 430.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009999/0.6547, allocations: 425.7 kB / 430.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.6547, allocations: 0 / 430.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004051/0.6551, allocations: 221.9 kB / 430.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.6566, allocations: 168.3 kB / 431 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.6602, allocations: 1.193 MB / 432.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007116/0.6609, allocations: 0.9599 MB / 433.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005644/0.6615, allocations: 309.1 kB / 433.4 MB, free: 8.863 MB / 330.7 MB Notification: Performance of SimCode: time 1.643e-06/0.6615, allocations: 0 / 433.4 MB, free: 8.863 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.905/3.566, allocations: 17.48 MB / 450.9 MB, free: 11 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat