Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2355/2.18, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/2.278, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/2.672, allocations: 123.5 MB / 417.4 MB, free: 15.06 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/2.672, allocations: 94.38 kB / 417.5 MB, free: 15.01 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.9253/3.598, allocations: 155.5 MB / 0.5595 GB, free: 63.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/3.598, allocations: 7.875 kB / 0.5595 GB, free: 63.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/3.61, allocations: 1.249 MB / 0.5608 GB, free: 62.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03094/3.641, allocations: 6.269 MB / 0.5669 GB, free: 61.45 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007091/3.642, allocations: 219.4 kB / 0.5671 GB, free: 61.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003544/3.645, allocations: 406.7 kB / 0.5675 GB, free: 61.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03082/3.676, allocations: 7.173 MB / 0.5745 GB, free: 56.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03532/3.711, allocations: 8.306 MB / 0.5826 GB, free: 49.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005173/3.712, allocations: 19.69 kB / 0.5826 GB, free: 49.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002841/3.715, allocations: 11.91 kB / 0.5826 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003633/3.715, allocations: 296.8 kB / 0.5829 GB, free: 49.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09415/3.809, allocations: 28.36 MB / 0.6106 GB, free: 23.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007473/3.817, allocations: 2.453 MB / 0.613 GB, free: 21.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01089/3.828, allocations: 3.344 MB / 0.6163 GB, free: 17.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/3.855, allocations: 6.926 MB / 0.623 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.893e-05/3.855, allocations: 73.23 kB / 0.6231 GB, free: 10.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=348): time 8.546e-06/3.855, allocations: 0 / 0.6231 GB, free: 10.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=367): time 0.04757/3.903, allocations: 11.8 MB / 0.6346 GB, free: 14.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/3.903, allocations: 90.3 kB / 0.6347 GB, free: 14.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/3.914, allocations: 2.832 MB / 0.6375 GB, free: 11.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009556/3.915, allocations: 25.7 kB / 0.6375 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002976/3.918, allocations: 2.363 MB / 0.6398 GB, free: 9.461 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0025/3.92, allocations: 1.185 MB / 0.641 GB, free: 8.258 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006435/3.921, allocations: 0 / 0.641 GB, free: 8.258 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005474/3.922, allocations: 470.8 kB / 0.6414 GB, free: 7.789 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007395/3.929, allocations: 1.949 MB / 0.6433 GB, free: 5.832 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008788/3.938, allocations: 2.85 MB / 0.6461 GB, free: 2.594 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009529/3.947, allocations: 2.454 MB / 0.6485 GB, free: 132 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.727e-05/3.947, allocations: 8 kB / 0.6485 GB, free: 124 kB / 410.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.1942/4.142, allocations: 6.372 MB / 0.6547 GB, free: 109.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/4.142, allocations: 6.25 kB / 0.6547 GB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.366e-05/4.142, allocations: 28.41 kB / 0.6548 GB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005934/4.148, allocations: 1.244 MB / 0.656 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00905/4.157, allocations: 0.872 MB / 0.6568 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0292/4.186, allocations: 19.48 MB / 0.6758 GB, free: 96.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006746/4.193, allocations: 107.8 kB / 0.6759 GB, free: 96.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/4.194, allocations: 164.7 kB / 0.6761 GB, free: 96.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 (458): * Single equations (assignments): 444 * 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%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.001255/4.195, allocations: 205 kB / 0.6763 GB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/4.197, allocations: 418.5 kB / 0.6767 GB, free: 96.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02298/4.22, allocations: 6.221 MB / 0.6828 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.247e-05/4.22, allocations: 35.88 kB / 0.6828 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.375e-05/4.22, allocations: 14.72 kB / 0.6828 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-05/4.22, allocations: 17.73 kB / 0.6828 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04181/4.262, allocations: 12.31 MB / 0.6949 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-05/4.262, allocations: 5.312 kB / 0.6949 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0062/4.268, allocations: 0.5133 MB / 0.6954 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008226/4.277, allocations: 1.592 MB / 0.6969 GB, free: 94.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009039/4.278, allocations: 37.25 kB / 0.697 GB, free: 94.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04236/4.32, allocations: 28.36 MB / 0.7246 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/4.32, allocations: 5.969 kB / 0.7247 GB, free: 72.91 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02733/4.347, allocations: 9.449 MB / 0.7339 GB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03525/4.383, allocations: 12.89 MB / 0.7465 GB, free: 62.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004183/4.387, allocations: 0.9116 MB / 0.7474 GB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002065/4.389, allocations: 19.05 kB / 0.7474 GB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006092/4.395, allocations: 137.4 kB / 0.7475 GB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/4.397, allocations: 217.6 kB / 0.7477 GB, free: 61.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008306/4.398, allocations: 99.97 kB / 0.7478 GB, free: 61.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.007532/4.405, allocations: 2.107 MB / 0.7499 GB, free: 61.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01054/4.416, allocations: 1.249 MB / 0.7511 GB, free: 61.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,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 (274): * Single equations (assignments): 257 * 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001883/4.418, allocations: 475.4 kB / 0.7515 GB, free: 60.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01666/4.434, allocations: 6.273 MB / 0.7577 GB, free: 55.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/4.434, allocations: 0 / 0.7577 GB, free: 55.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01243/4.447, allocations: 4.542 MB / 0.7621 GB, free: 51.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009915/4.457, allocations: 0.9097 MB / 0.763 GB, free: 50.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03956/4.496, allocations: 11.24 MB / 0.774 GB, free: 40.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01212/4.509, allocations: 4.918 MB / 0.7788 GB, free: 36.96 MB / 410.7 MB Notification: Performance of SimCode: time 2.124e-06/4.509, allocations: 0 / 0.7788 GB, free: 36.96 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat