Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",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.608/1.608, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.196/1.804, allocations: 46.83 MB / 249.4 MB, free: 5.367 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/1.89, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2951/2.185, allocations: 98.83 MB / 392.7 MB, free: 2.887 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/2.185, allocations: 83.83 kB / 392.8 MB, free: 2.875 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.181/2.366, allocations: 42.77 MB / 435.6 MB, free: 3.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/2.366, allocations: 11.94 kB / 435.6 MB, free: 3.695 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/2.368, allocations: 277 kB / 435.9 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004347/2.372, allocations: 1.374 MB / 437.3 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/2.372, allocations: 60.56 kB / 437.3 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000439/2.373, allocations: 122.6 kB / 437.4 MB, free: 2.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005778/2.378, allocations: 1.772 MB / 439.2 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006095/2.385, allocations: 2.121 MB / 441.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.887e-05/2.385, allocations: 3.906 kB / 441.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/2.385, allocations: 8 kB / 441.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/2.385, allocations: 83.69 kB / 441.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02036/2.405, allocations: 7.491 MB / 448.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002289/2.408, allocations: 0.8263 MB / 449.7 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002719/2.411, allocations: 0.9074 MB / 450.6 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003973/2.411, allocations: 134 kB / 450.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/2.411, allocations: 59.41 kB / 450.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=111): time 3.677e-06/2.411, allocations: 0 / 450.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=127): time 0.01459/2.426, allocations: 4.244 MB / 455.1 MB, free: 212 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/2.426, allocations: 64.72 kB / 455.1 MB, free: 136 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/2.428, allocations: 0.8976 MB / 456 MB, free: 15.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002875/2.428, allocations: 25.7 kB / 456.1 MB, free: 15.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006466/2.429, allocations: 0.7124 MB / 456.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000679/2.43, allocations: 429.6 kB / 457.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/2.43, allocations: 0 / 457.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001939/2.43, allocations: 361.9 kB / 457.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/2.432, allocations: 0.6443 MB / 458.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/2.434, allocations: 0.949 MB / 459.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/2.436, allocations: 0.7948 MB / 459.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/2.436, allocations: 4 kB / 459.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.006914/2.443, allocations: 2.164 MB / 462.1 MB, free: 8.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/2.443, allocations: 4 kB / 462.1 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.897e-05/2.443, allocations: 12 kB / 462.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/2.445, allocations: 0.4884 MB / 462.6 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/2.448, allocations: 331.5 kB / 462.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/2.459, allocations: 6.142 MB / 469.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/2.461, allocations: 43.86 kB / 469.1 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001922/2.462, allocations: 56 kB / 469.2 MB, free: 1.535 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003754/2.462, allocations: 132.7 kB / 469.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/2.462, allocations: 138.3 kB / 469.4 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006237/2.469, allocations: 2.004 MB / 471.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/2.469, allocations: 12.22 kB / 471.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/2.469, allocations: 4 kB / 471.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/2.469, allocations: 11.92 kB / 471.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/2.481, allocations: 3.991 MB / 475.5 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/2.481, allocations: 4 kB / 475.5 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/2.483, allocations: 216 kB / 475.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002723/2.486, allocations: 0.5468 MB / 476.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/2.486, allocations: 11.98 kB / 476.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/2.498, allocations: 7.613 MB / 483.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/2.498, allocations: 4 kB / 483.9 MB, free: 2.25 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008145/2.506, allocations: 3.101 MB / 487 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01033/2.517, allocations: 4.454 MB / 491.4 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/2.518, allocations: 355.3 kB / 491.8 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/2.518, allocations: 15.98 kB / 491.8 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/2.52, allocations: 43.95 kB / 491.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/2.52, allocations: 72.88 kB / 491.9 MB, free: 9.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/2.52, allocations: 43.98 kB / 491.9 MB, free: 9.941 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001591/2.522, allocations: 0.6729 MB / 492.6 MB, free: 9.262 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003066/2.525, allocations: 424.2 kB / 493 MB, free: 8.848 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007163/2.525, allocations: 268.2 kB / 493.3 MB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005345/2.531, allocations: 2.172 MB / 495.4 MB, free: 6.328 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/2.531, allocations: 0 / 495.4 MB, free: 6.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/2.535, allocations: 1.444 MB / 496.9 MB, free: 4.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/2.537, allocations: 272.5 kB / 497.2 MB, free: 4.551 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/2.549, allocations: 3.461 MB / 0.4889 GB, free: 1.016 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1237/2.672, allocations: 1.806 MB / 0.4906 GB, free: 141.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.312e-06/2.672, allocations: 0 / 0.4906 GB, free: 141.9 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat