Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) [: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.662/1.662, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.206/1.868, allocations: 46.84 MB / 249.4 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/1.959, allocations: 44.5 MB / 293.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3895/2.349, allocations: 123.5 MB / 417.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/2.349, allocations: 83.83 kB / 417.4 MB, free: 15.15 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.7585/3.108, allocations: 155.5 MB / 0.5595 GB, free: 67.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/3.108, allocations: 9.688 kB / 0.5595 GB, free: 67.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01047/3.118, allocations: 1.251 MB / 0.5607 GB, free: 67.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02559/3.144, allocations: 6.265 MB / 0.5668 GB, free: 65.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005953/3.145, allocations: 219.2 kB / 0.567 GB, free: 65.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003183/3.148, allocations: 406.1 kB / 0.5674 GB, free: 65.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02538/3.173, allocations: 7.17 MB / 0.5744 GB, free: 60.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02976/3.203, allocations: 8.308 MB / 0.5825 GB, free: 52.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003265/3.203, allocations: 15.69 kB / 0.5825 GB, free: 52.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002289/3.206, allocations: 11.91 kB / 0.5826 GB, free: 52.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002885/3.206, allocations: 300.6 kB / 0.5828 GB, free: 52.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07955/3.286, allocations: 28.36 MB / 0.6105 GB, free: 26.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006129/3.292, allocations: 2.45 MB / 0.6129 GB, free: 23.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009056/3.301, allocations: 3.34 MB / 0.6162 GB, free: 20.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02191/3.323, allocations: 6.927 MB / 0.623 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.704e-05/3.323, allocations: 73.3 kB / 0.623 GB, free: 13.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=348): time 7.123e-06/3.323, allocations: 0 / 0.623 GB, free: 13.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=367): time 0.03755/3.361, allocations: 11.79 MB / 0.6345 GB, free: 1.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/3.361, allocations: 94.23 kB / 0.6346 GB, free: 1.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1637/3.525, allocations: 2.83 MB / 0.6374 GB, free: 96.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009275/3.526, allocations: 25.7 kB / 0.6374 GB, free: 96.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/3.528, allocations: 2.363 MB / 0.6397 GB, free: 96.65 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001856/3.529, allocations: 1.183 MB / 0.6409 GB, free: 95.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/3.53, allocations: 3.875 kB / 0.6409 GB, free: 95.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003136/3.53, allocations: 470.4 kB / 0.6413 GB, free: 95.67 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005236/3.535, allocations: 1.948 MB / 0.6432 GB, free: 95.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006266/3.542, allocations: 2.848 MB / 0.646 GB, free: 94.65 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006996/3.549, allocations: 2.451 MB / 0.6484 GB, free: 94.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.14e-05/3.549, allocations: 8.719 kB / 0.6484 GB, free: 94.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.01942/3.568, allocations: 6.38 MB / 0.6546 GB, free: 93.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/3.568, allocations: 5.188 kB / 0.6547 GB, free: 93.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.282e-05/3.569, allocations: 30.8 kB / 0.6547 GB, free: 93.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004913/3.573, allocations: 1.244 MB / 0.6559 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007406/3.581, allocations: 0.8769 MB / 0.6568 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0238/3.605, allocations: 19.48 MB / 0.6758 GB, free: 80.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005735/3.611, allocations: 112.3 kB / 0.6759 GB, free: 80.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/3.612, allocations: 161 kB / 0.676 GB, free: 80.43 MB / 394.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.001106/3.613, allocations: 206.3 kB / 0.6762 GB, free: 80.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/3.614, allocations: 416.9 kB / 0.6766 GB, free: 80.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01777/3.632, allocations: 6.219 MB / 0.6827 GB, free: 79.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-05/3.632, allocations: 34.47 kB / 0.6827 GB, free: 79.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.142e-05/3.632, allocations: 21.72 kB / 0.6828 GB, free: 79.37 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.48e-05/3.632, allocations: 18.05 kB / 0.6828 GB, free: 79.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03549/3.668, allocations: 12.31 MB / 0.6948 GB, free: 76.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-05/3.668, allocations: 10.58 kB / 0.6948 GB, free: 76.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005279/3.673, allocations: 0.5115 MB / 0.6953 GB, free: 76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006967/3.68, allocations: 1.591 MB / 0.6969 GB, free: 75.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007672/3.681, allocations: 31.62 kB / 0.6969 GB, free: 75.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03463/3.716, allocations: 28.36 MB / 0.7246 GB, free: 52.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/3.716, allocations: 7.406 kB / 0.7246 GB, free: 52.06 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02451/3.74, allocations: 9.451 MB / 0.7338 GB, free: 47.7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03273/3.773, allocations: 12.87 MB / 0.7464 GB, free: 40.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003876/3.777, allocations: 0.9207 MB / 0.7473 GB, free: 40.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001814/3.779, allocations: 26.84 kB / 0.7473 GB, free: 40 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005111/3.784, allocations: 132.5 kB / 0.7474 GB, free: 39.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/3.785, allocations: 213.3 kB / 0.7476 GB, free: 39.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004522/3.786, allocations: 105.7 kB / 0.7477 GB, free: 39.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.005584/3.791, allocations: 2.107 MB / 0.7498 GB, free: 37.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00903/3.8, allocations: 1.258 MB / 0.751 GB, free: 36.59 MB / 394.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.001703/3.802, allocations: 458.8 kB / 0.7515 GB, free: 36.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01444/3.817, allocations: 6.271 MB / 0.7576 GB, free: 30.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/3.817, allocations: 8 kB / 0.7576 GB, free: 30.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01076/3.827, allocations: 4.55 MB / 0.762 GB, free: 26.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008728/3.836, allocations: 0.9073 MB / 0.7629 GB, free: 25.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04475/3.881, allocations: 11.23 MB / 0.7739 GB, free: 15.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01141/3.892, allocations: 4.91 MB / 0.7787 GB, free: 11.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/3.892, allocations: 0 / 0.7787 GB, free: 11.71 MB / 394.7 MB