Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.667e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3334, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2194/0.5528, allocations: 116.4 MB / 410.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00047/0.5533, allocations: 91.88 kB / 410.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6449/1.198, allocations: 116.1 MB / 0.5144 GB, free: 24.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.198, allocations: 0 / 0.5144 GB, free: 24.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004919/1.199, allocations: 139.8 kB / 0.5146 GB, free: 24.08 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.0182/1.217, allocations: 4.914 MB / 0.5194 GB, free: 19.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/1.217, allocations: 8.031 kB / 0.5194 GB, free: 19.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007059/1.224, allocations: 0.9963 MB / 0.5203 GB, free: 18.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/1.24, allocations: 4.594 MB / 0.5248 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/1.24, allocations: 164 kB / 0.525 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001824/1.242, allocations: 311.8 kB / 0.5253 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01985/1.262, allocations: 5.136 MB / 0.5303 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02255/1.284, allocations: 5.983 MB / 0.5361 GB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002535/1.285, allocations: 7.906 kB / 0.5362 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009422/1.286, allocations: 4 kB / 0.5362 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003524/1.286, allocations: 234.2 kB / 0.5364 GB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3372/1.623, allocations: 20.45 MB / 0.5564 GB, free: 46.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/1.635, allocations: 8.55 MB / 0.5647 GB, free: 40.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00533/1.64, allocations: 2.119 MB / 0.5668 GB, free: 40.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01537/1.656, allocations: 5.988 MB / 0.5726 GB, free: 39.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/1.656, allocations: 61.7 kB / 0.5727 GB, free: 39.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 5.219e-06/1.656, allocations: 0 / 0.5727 GB, free: 39.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=239): time 0.02221/1.678, allocations: 8.198 MB / 0.5807 GB, free: 38.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/1.678, allocations: 83.39 kB / 0.5808 GB, free: 38.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004225/1.682, allocations: 2.107 MB / 0.5828 GB, free: 38.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000483/1.683, allocations: 29.61 kB / 0.5828 GB, free: 38.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/1.684, allocations: 2.194 MB / 0.585 GB, free: 37.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009296/1.685, allocations: 0.7793 MB / 0.5857 GB, free: 36.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/1.686, allocations: 3.312 kB / 0.5858 GB, free: 36.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/1.686, allocations: 424.4 kB / 0.5862 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002585/1.688, allocations: 1.243 MB / 0.5874 GB, free: 36.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002931/1.691, allocations: 1.969 MB / 0.5893 GB, free: 35.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003979/1.695, allocations: 1.73 MB / 0.591 GB, free: 35.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.028e-05/1.695, allocations: 6.562 kB / 0.591 GB, free: 35.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.009846/1.705, allocations: 4.158 MB / 0.595 GB, free: 35.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/1.705, allocations: 13.66 kB / 0.5951 GB, free: 35.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.066e-05/1.705, allocations: 23.56 kB / 0.5951 GB, free: 35.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002646/1.708, allocations: 0.7394 MB / 0.5958 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004495/1.713, allocations: 0.6476 MB / 0.5964 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/1.726, allocations: 12.8 MB / 0.6089 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003678/1.73, allocations: 101.8 kB / 0.609 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/1.73, allocations: 120.8 kB / 0.6092 GB, free: 26.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 312 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006336/1.731, allocations: 183 kB / 0.6093 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00901/1.74, allocations: 3.768 MB / 0.613 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008781/1.741, allocations: 296.3 kB / 0.6133 GB, free: 25.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009899/1.751, allocations: 4.015 MB / 0.6172 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/1.751, allocations: 22.28 kB / 0.6172 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.751, allocations: 11 kB / 0.6172 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.961e-05/1.751, allocations: 11.44 kB / 0.6173 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02014/1.771, allocations: 8.276 MB / 0.6253 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/1.771, allocations: 2.094 kB / 0.6253 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/1.774, allocations: 388.9 kB / 0.6257 GB, free: 20.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003682/1.778, allocations: 0.9011 MB / 0.6266 GB, free: 20.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002568/1.778, allocations: 32.69 kB / 0.6266 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01838/1.797, allocations: 15.85 MB / 0.6421 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/1.797, allocations: 6.562 kB / 0.6421 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/1.809, allocations: 6.15 MB / 0.6481 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002174/1.812, allocations: 0.6565 MB / 0.6487 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007156/1.812, allocations: 29.95 kB / 0.6488 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.815, allocations: 104.4 kB / 0.6489 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006355/1.816, allocations: 194.3 kB / 0.6491 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/1.816, allocations: 70.3 kB / 0.6491 GB, free: 4.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003092/1.819, allocations: 1.582 MB / 0.6507 GB, free: 3.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.819, allocations: 3.938 kB / 0.6507 GB, free: 3.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004909/1.824, allocations: 0.9012 MB / 0.6516 GB, free: 3.613 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0145/1.838, allocations: 7.964 MB / 0.6593 GB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009591/1.848, allocations: 4.255 MB / 0.6635 GB, free: 9.859 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/1.848, allocations: 0 / 0.6635 GB, free: 9.859 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006857/1.855, allocations: 2.872 MB / 0.6663 GB, free: 7.203 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005236/1.86, allocations: 0.6451 MB / 0.6669 GB, free: 6.727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02948/1.89, allocations: 9.431 MB / 0.6761 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005324/1.895, allocations: 3.429 MB / 0.6795 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004612/1.9, allocations: 1.958 MB / 0.6814 GB, free: 10.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.362e-06/1.9, allocations: 8 kB / 0.6814 GB, free: 10.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.228/7.128, allocations: 316.9 MB / 0.9909 GB, free: 37.56 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat