Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.377e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2599, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.6772, allocations: 116.3 MB / 374.6 MB, free: 54.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.6775, allocations: 85.22 kB / 374.7 MB, free: 54.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7415/1.419, allocations: 143.7 MB / 0.5063 GB, free: 29.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.419, allocations: 2.516 kB / 0.5063 GB, free: 29.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007923/1.42, allocations: 178.6 kB / 0.5064 GB, free: 29.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02606/1.446, allocations: 6.403 MB / 0.5127 GB, free: 27.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/1.446, allocations: 10.97 kB / 0.5127 GB, free: 27.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006446/1.453, allocations: 0.9914 MB / 0.5137 GB, free: 26.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01755/1.47, allocations: 5.223 MB / 0.5188 GB, free: 25.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004197/1.471, allocations: 211.3 kB / 0.519 GB, free: 25.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00248/1.473, allocations: 389.8 kB / 0.5193 GB, free: 25.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0192/1.492, allocations: 6.502 MB / 0.5257 GB, free: 25.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/1.517, allocations: 7.784 MB / 0.5333 GB, free: 24.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002689/1.518, allocations: 15.91 kB / 0.5333 GB, free: 24.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001417/1.519, allocations: 9.469 kB / 0.5333 GB, free: 24.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/1.519, allocations: 267.1 kB / 0.5336 GB, free: 24.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06508/1.584, allocations: 26.67 MB / 0.5596 GB, free: 17.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00902/1.593, allocations: 5.758 MB / 0.5652 GB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006613/1.6, allocations: 2.897 MB / 0.5681 GB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006295/1.601, allocations: 163.3 kB / 0.5682 GB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.613e-05/1.601, allocations: 67.78 kB / 0.5683 GB, free: 13.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=322): time 5.831e-06/1.601, allocations: 0 / 0.5683 GB, free: 13.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=341): time 0.02837/1.629, allocations: 10.77 MB / 0.5788 GB, free: 8.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/1.629, allocations: 86.47 kB / 0.5789 GB, free: 8.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005778/1.635, allocations: 2.739 MB / 0.5816 GB, free: 6.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007674/1.636, allocations: 25.7 kB / 0.5816 GB, free: 6.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/1.638, allocations: 2.727 MB / 0.5842 GB, free: 4.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/1.639, allocations: 1.099 MB / 0.5853 GB, free: 3.902 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/1.64, allocations: 0 / 0.5853 GB, free: 3.902 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002557/1.64, allocations: 466.1 kB / 0.5858 GB, free: 3.527 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/1.644, allocations: 1.73 MB / 0.5874 GB, free: 2.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004401/1.648, allocations: 2.572 MB / 0.59 GB, free: 1.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004764/1.653, allocations: 2.153 MB / 0.5921 GB, free: 276 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.494e-05/1.653, allocations: 11.2 kB / 0.5921 GB, free: 272 kB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01689/1.67, allocations: 5.659 MB / 0.5976 GB, free: 13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/1.67, allocations: 20.55 kB / 0.5976 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-05/1.67, allocations: 24 kB / 0.5976 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004716/1.675, allocations: 1.236 MB / 0.5988 GB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006467/1.681, allocations: 0.8221 MB / 0.5996 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02691/1.708, allocations: 20.42 MB / 0.6196 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004605/1.713, allocations: 122.4 kB / 0.6197 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005462/1.713, allocations: 143.1 kB / 0.6198 GB, free: 6.848 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (417): * Single equations (assignments): 403 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008851/1.714, allocations: 204.3 kB / 0.62 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01402/1.728, allocations: 5.404 MB / 0.6253 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001562/1.73, allocations: 410.2 kB / 0.6257 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2811/2.011, allocations: 5.765 MB / 0.6313 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.142e-05/2.011, allocations: 33.12 kB / 0.6314 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.608e-05/2.011, allocations: 15.75 kB / 0.6314 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-05/2.011, allocations: 18.75 kB / 0.6314 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03224/2.044, allocations: 11.79 MB / 0.6429 GB, free: 50.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.304e-05/2.044, allocations: 6.875 kB / 0.6429 GB, free: 50.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004185/2.048, allocations: 483.4 kB / 0.6434 GB, free: 50.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006184/2.054, allocations: 1.56 MB / 0.6449 GB, free: 49.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006647/2.055, allocations: 25.95 kB / 0.6449 GB, free: 49.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0315/2.086, allocations: 28.96 MB / 0.6732 GB, free: 30.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/2.086, allocations: 5.969 kB / 0.6732 GB, free: 30.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01864/2.105, allocations: 8.771 MB / 0.6818 GB, free: 29.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003267/2.108, allocations: 0.8662 MB / 0.6826 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001513/2.11, allocations: 16.98 kB / 0.6826 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004139/2.114, allocations: 145.6 kB / 0.6828 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/2.115, allocations: 287.2 kB / 0.6831 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003456/2.116, allocations: 96.69 kB / 0.6832 GB, free: 28.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004636/2.12, allocations: 2.047 MB / 0.6852 GB, free: 28.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.61e-07/2.12, allocations: 0 / 0.6852 GB, free: 28.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007312/2.128, allocations: 1.19 MB / 0.6863 GB, free: 28.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 231 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(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.02025/2.148, allocations: 10.69 MB / 0.6968 GB, free: 25.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0121/2.16, allocations: 5.934 MB / 0.7025 GB, free: 24.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/2.16, allocations: 0 / 0.7025 GB, free: 24.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009422/2.169, allocations: 4.587 MB / 0.707 GB, free: 22.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007933/2.177, allocations: 0.9479 MB / 0.708 GB, free: 21.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03427/2.212, allocations: 12.2 MB / 0.7199 GB, free: 17.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007689/2.219, allocations: 4.427 MB / 0.7242 GB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005749/2.225, allocations: 2.596 MB / 0.7267 GB, free: 13.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/2.225, allocations: 0 / 0.7267 GB, free: 13.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.937/9.162, allocations: 0.5968 GB / 1.323 GB, free: 39.28 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat