Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.246/2.246, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.793e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3578, allocations: 44.49 MB / 294.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2317/0.5895, allocations: 110.6 MB / 404.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003929/0.59, allocations: 87.94 kB / 405 MB, free: 3.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.338/1.928, allocations: 166.9 MB / 0.5585 GB, free: 25.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.928, allocations: 2.5 kB / 0.5585 GB, free: 25.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001136/1.929, allocations: 177.9 kB / 0.5587 GB, free: 25.81 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: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.04643/1.976, allocations: 6.663 MB / 0.5652 GB, free: 23.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.883e-05/1.976, allocations: 10.66 kB / 0.5652 GB, free: 23.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02307/1.999, allocations: 1.588 MB / 0.5667 GB, free: 23.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02513/2.024, allocations: 5.902 MB / 0.5725 GB, free: 22.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005445/2.025, allocations: 237 kB / 0.5727 GB, free: 22.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003159/2.028, allocations: 435.4 kB / 0.5731 GB, free: 22.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02593/2.054, allocations: 7.086 MB / 0.5801 GB, free: 22.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03182/2.086, allocations: 8.288 MB / 0.5881 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003665/2.086, allocations: 17.55 kB / 0.5882 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002067/2.088, allocations: 7.219 kB / 0.5882 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004659/2.089, allocations: 343.7 kB / 0.5885 GB, free: 21.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/2.196, allocations: 29.17 MB / 0.617 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02656/2.222, allocations: 15.81 MB / 0.6324 GB, free: 18.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00829/2.231, allocations: 2.909 MB / 0.6353 GB, free: 17.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02574/2.257, allocations: 7.893 MB / 0.643 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.798e-05/2.257, allocations: 64.25 kB / 0.643 GB, free: 12.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=283): time 7.745e-06/2.257, allocations: 3.531 kB / 0.643 GB, free: 12.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=291): time 0.03834/2.295, allocations: 8.752 MB / 0.6516 GB, free: 8.711 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/2.295, allocations: 83.42 kB / 0.6517 GB, free: 8.645 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02228/2.318, allocations: 2.508 MB / 0.6541 GB, free: 7.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.008625/2.326, allocations: 25.7 kB / 0.6541 GB, free: 7.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.009887/2.336, allocations: 3.191 MB / 0.6573 GB, free: 5.172 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006164/2.342, allocations: 0.9637 MB / 0.6582 GB, free: 4.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005447/2.343, allocations: 0 / 0.6582 GB, free: 4.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005626/2.344, allocations: 450.5 kB / 0.6586 GB, free: 4.043 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005957/2.35, allocations: 1.33 MB / 0.6599 GB, free: 3.477 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008371/2.358, allocations: 2.426 MB / 0.6623 GB, free: 1.496 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008467/2.366, allocations: 2.128 MB / 0.6644 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-05/2.367, allocations: 11.41 kB / 0.6644 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01876/2.385, allocations: 4.731 MB / 0.669 GB, free: 14.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/2.385, allocations: 19.5 kB / 0.669 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.197e-05/2.386, allocations: 37.75 kB / 0.6691 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/2.387, allocations: 391.9 kB / 0.6694 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008642/2.396, allocations: 0.8641 MB / 0.6703 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/2.408, allocations: 7.026 MB / 0.6771 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005935/2.414, allocations: 106.3 kB / 0.6772 GB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/2.415, allocations: 171.9 kB / 0.6774 GB, free: 7.672 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (451): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001009/2.416, allocations: 214.9 kB / 0.6776 GB, free: 7.512 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01563/2.432, allocations: 4.022 MB / 0.6815 GB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/2.434, allocations: 354.3 kB / 0.6819 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01694/2.451, allocations: 4.391 MB / 0.6862 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.844e-05/2.451, allocations: 28 kB / 0.6862 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.631e-05/2.451, allocations: 16 kB / 0.6862 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.499e-05/2.451, allocations: 13.73 kB / 0.6862 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03337/2.484, allocations: 9.468 MB / 0.6955 GB, free: 8.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/2.484, allocations: 4 kB / 0.6955 GB, free: 8.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004705/2.489, allocations: 449.3 kB / 0.6959 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005008/2.494, allocations: 0.8588 MB / 0.6967 GB, free: 7.066 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008144/2.495, allocations: 35.41 kB / 0.6968 GB, free: 7.039 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4004/2.895, allocations: 15.68 MB / 0.7121 GB, free: 60.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.999e-05/2.895, allocations: 8.719 kB / 0.7121 GB, free: 60.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/2.919, allocations: 6.685 MB / 0.7186 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003348/2.922, allocations: 0.7527 MB / 0.7194 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001742/2.924, allocations: 21.23 kB / 0.7194 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004822/2.929, allocations: 105.8 kB / 0.7195 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/2.93, allocations: 226.7 kB / 0.7197 GB, free: 59.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003774/2.931, allocations: 83.42 kB / 0.7198 GB, free: 59.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005535/2.936, allocations: 1.844 MB / 0.7216 GB, free: 59.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.936, allocations: 0 / 0.7216 GB, free: 59.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008128/2.944, allocations: 1.113 MB / 0.7227 GB, free: 59.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 213 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02237/2.967, allocations: 8.696 MB / 0.7311 GB, free: 56.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0102/2.977, allocations: 3.958 MB / 0.735 GB, free: 55.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.977, allocations: 3.656 kB / 0.735 GB, free: 55.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007605/2.985, allocations: 2.781 MB / 0.7377 GB, free: 54.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008277/2.993, allocations: 0.7592 MB / 0.7385 GB, free: 54.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04512/3.038, allocations: 11.72 MB / 0.7499 GB, free: 52.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009736/3.048, allocations: 4.455 MB / 0.7543 GB, free: 51.51 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00682/3.055, allocations: 0.8364 MB / 0.7551 GB, free: 51.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007045/3.062, allocations: 2.653 MB / 0.7577 GB, free: 51.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/3.062, allocations: 0 / 0.7577 GB, free: 51.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3017/3.364, allocations: 91.07 MB / 0.8466 GB, free: 5.617 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003206/3.364, allocations: 180.2 kB / 0.8468 GB, free: 5.426 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.383/10.75, allocations: 7.906 kB / 0.8468 GB, free: 5.418 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat