Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.02/2.02, allocations: 225.8 MB / 239.3 MB, free: 1.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.487e-05/3.497e-05, allocations: 7.984 kB / 292.7 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 50.4 MB / 343.2 MB, free: 8.973 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4378/0.5419, allocations: 95.65 MB / 438.8 MB, free: 4.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.5422, allocations: 86.33 kB / 438.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1636/0.7058, allocations: 40.76 MB / 479.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7059, allocations: 0 / 479.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.706, allocations: 32 kB / 479.7 MB, free: 7.551 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004355/0.7104, allocations: 1.558 MB / 481.2 MB, free: 6.039 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.7104, allocations: 12.03 kB / 481.2 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005265/0.711, allocations: 221.3 kB / 481.5 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.7123, allocations: 253.6 kB / 481.7 MB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003232/0.7155, allocations: 1.093 MB / 482.8 MB, free: 4.773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.7157, allocations: 111.8 kB / 482.9 MB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003357/0.716, allocations: 155.9 kB / 483.1 MB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003544/0.7196, allocations: 1.415 MB / 484.5 MB, free: 3.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.971e-05/0.7197, allocations: 13.34 kB / 484.5 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002058/0.7199, allocations: 60.44 kB / 484.5 MB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.72, allocations: 40 kB / 484.6 MB, free: 3.547 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002826/0.7228, allocations: 0.8903 MB / 485.5 MB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.7361, allocations: 6.66 MB / 492.1 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000994/0.7371, allocations: 355.4 kB / 492.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005508/0.7377, allocations: 206.1 kB / 492.7 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-05/0.7377, allocations: 8.422 kB / 492.7 MB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005859/0.7383, allocations: 260.7 kB / 492.9 MB, free: 10.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 3.005e-06/0.7384, allocations: 0 / 492.9 MB, free: 10.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.00409/0.7425, allocations: 1.612 MB / 494.6 MB, free: 9.289 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.7426, allocations: 196.4 kB / 494.7 MB, free: 9.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/0.7449, allocations: 1.065 MB / 495.8 MB, free: 7.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/0.7451, allocations: 33.7 kB / 495.8 MB, free: 7.938 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.7461, allocations: 0.8711 MB / 496.7 MB, free: 7.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.7463, allocations: 205.2 kB / 496.9 MB, free: 6.852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/0.7464, allocations: 24 kB / 496.9 MB, free: 6.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7466, allocations: 349.9 kB / 497.3 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.7472, allocations: 210.6 kB / 497.5 MB, free: 6.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.7483, allocations: 0.7775 MB / 498.3 MB, free: 5.215 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008918/0.7492, allocations: 379.5 kB / 498.6 MB, free: 4.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.742e-05/0.7492, allocations: 8 kB / 498.6 MB, free: 4.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002804/0.752, allocations: 1.091 MB / 499.7 MB, free: 3.727 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.7521, allocations: 41.7 kB / 499.8 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/0.7522, allocations: 23.94 kB / 499.8 MB, free: 3.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003279/0.7525, allocations: 66.33 kB / 499.9 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.7541, allocations: 275.5 kB / 0.4884 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.7565, allocations: 2.572 MB / 0.4909 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.7583, allocations: 75.84 kB / 0.491 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.7585, allocations: 64 kB / 0.4911 GB, free: 348 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002708/0.7588, allocations: 192.4 kB / 0.4912 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002448/0.759, allocations: 130.4 kB / 0.4914 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.7605, allocations: 0.5097 MB / 0.4919 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.7605, allocations: 4 kB / 0.4919 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.7606, allocations: 4 kB / 0.4919 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.7606, allocations: 3.984 kB / 0.4919 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004311/0.7649, allocations: 1.888 MB / 0.4937 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.765, allocations: 4 kB / 0.4937 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000879/0.7658, allocations: 108.3 kB / 0.4938 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002426/0.7661, allocations: 41.7 kB / 0.4939 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.439e-05/0.7662, allocations: 19.98 kB / 0.4939 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002316/0.7685, allocations: 2.54 MB / 0.4964 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.7685, allocations: 4 kB / 0.4964 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/0.7707, allocations: 1.071 MB / 0.4974 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006408/0.7714, allocations: 247.5 kB / 0.4977 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/0.7717, allocations: 20.12 kB / 0.4977 GB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000983/0.7727, allocations: 47.86 kB / 0.4977 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.7728, allocations: 47.94 kB / 0.4978 GB, free: 8.848 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.673e-05/0.7729, allocations: 24 kB / 0.4978 GB, free: 8.824 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001798/0.7747, allocations: 0.7858 MB / 0.4986 GB, free: 8.035 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.186e-06/0.7747, allocations: 0 / 0.4986 GB, free: 8.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00184/0.7766, allocations: 347.9 kB / 0.4989 GB, free: 7.695 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003151/0.7797, allocations: 2.849 MB / 0.5017 GB, free: 4.715 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.7818, allocations: 0.8373 MB / 0.5025 GB, free: 3.848 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.7819, allocations: 3.938 kB / 0.5025 GB, free: 3.844 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009109/0.7828, allocations: 444.1 kB / 0.5029 GB, free: 3.391 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/0.7852, allocations: 301 kB / 0.5032 GB, free: 3.098 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/0.7916, allocations: 2.116 MB / 0.5053 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.7927, allocations: 1.209 MB / 0.5064 GB, free: 15.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001149/0.7938, allocations: 175.3 kB / 0.5066 GB, free: 15.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.7949, allocations: 0.5813 MB / 0.5072 GB, free: 14.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7949, allocations: 4 kB / 0.5072 GB, free: 14.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09654/0.8915, allocations: 28.37 MB / 0.5349 GB, free: 2.824 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003058/0.8918, allocations: 199 kB / 0.5351 GB, free: 2.594 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.516/4.408, allocations: 0 / 0.5351 GB, free: 2.594 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat