Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_LoadDump",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.648/1.648, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2143/1.862, allocations: 46.83 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/1.951, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3247/2.276, allocations: 109.8 MB / 403.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/2.276, allocations: 82.27 kB / 403.8 MB, free: 12.36 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 724 * Number of variables: 724 Notification: Performance of Generate backend data structure: time 0.2809/2.557, allocations: 64.25 MB / 468 MB, free: 3.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/2.557, allocations: 11.94 kB / 468 MB, free: 3.551 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003117/2.56, allocations: 487.5 kB / 468.5 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00749/2.568, allocations: 2.06 MB / 470.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00037/2.568, allocations: 291.8 kB / 470.8 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008708/2.569, allocations: 179.8 kB / 471 MB, free: 468 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009238/2.578, allocations: 2.702 MB / 473.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01014/2.588, allocations: 3.203 MB / 476.9 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001121/2.589, allocations: 8 kB / 476.9 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004337/2.589, allocations: 4 kB / 476.9 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001659/2.589, allocations: 117.4 kB / 477 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03341/2.623, allocations: 11.28 MB / 488.3 MB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/2.626, allocations: 1.207 MB / 489.5 MB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003282/2.629, allocations: 1.222 MB / 490.8 MB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004336/2.63, allocations: 143.8 kB / 490.9 MB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002714/2.633, allocations: 1.083 MB / 492 MB, free: 10.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 5.22e-06/2.633, allocations: 0 / 492 MB, free: 10.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=179): time 0.02366/2.656, allocations: 6.483 MB / 498.5 MB, free: 4.418 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001877/2.657, allocations: 312.7 kB / 498.8 MB, free: 4.047 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004093/2.661, allocations: 1.545 MB / 0.4886 GB, free: 2.508 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004049/2.661, allocations: 37.69 kB / 0.4886 GB, free: 2.465 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/2.662, allocations: 1.05 MB / 0.4896 GB, free: 1.398 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009208/2.663, allocations: 0.5775 MB / 0.4902 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/2.664, allocations: 0 / 0.4902 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002352/2.664, allocations: 394 kB / 0.4906 GB, free: 432 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1319/2.796, allocations: 0.9957 MB / 0.4916 GB, free: 131.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002995/2.799, allocations: 1.514 MB / 0.493 GB, free: 130.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/2.802, allocations: 1.208 MB / 0.4942 GB, free: 130.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/2.802, allocations: 3.938 kB / 0.4942 GB, free: 130.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009661/2.811, allocations: 3.422 MB / 0.4976 GB, free: 130.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001015/2.813, allocations: 5.147 MB / 0.5026 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.071e-05/2.813, allocations: 10.66 kB / 0.5026 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005379/2.818, allocations: 1.176 MB / 0.5037 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/2.821, allocations: 371.5 kB / 0.5041 GB, free: 125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02106/2.842, allocations: 13.23 MB / 0.517 GB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/2.846, allocations: 112.6 kB / 0.5171 GB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005593/2.847, allocations: 83.12 kB / 0.5172 GB, free: 117.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/2.847, allocations: 3.938 kB / 0.5172 GB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009395/2.856, allocations: 3.162 MB / 0.5203 GB, free: 117.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.366e-05/2.856, allocations: 12.62 kB / 0.5203 GB, free: 117.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004982/2.861, allocations: 1.178 MB / 0.5215 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/2.864, allocations: 358.3 kB / 0.5218 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02072/2.885, allocations: 13.2 MB / 0.5347 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/2.889, allocations: 106.8 kB / 0.5348 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/2.889, allocations: 85.86 kB / 0.5349 GB, free: 110.3 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulsStart,loadControl.pulsStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 202 * 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: 6 * 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: 3 {(2,100.0%) 16,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006685/2.89, allocations: 187.5 kB / 0.5351 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005155/2.89, allocations: 214.5 kB / 0.5353 GB, free: 110 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/2.901, allocations: 3.272 MB / 0.5385 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/2.901, allocations: 18.56 kB / 0.5385 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/2.901, allocations: 0 / 0.5385 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.656e-05/2.901, allocations: 13.45 kB / 0.5385 GB, free: 109.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01712/2.918, allocations: 6.135 MB / 0.5445 GB, free: 107.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/2.918, allocations: 3.812 kB / 0.5445 GB, free: 107.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/2.92, allocations: 201.3 kB / 0.5447 GB, free: 107.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006373/2.926, allocations: 1.389 MB / 0.546 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002612/2.926, allocations: 21.02 kB / 0.546 GB, free: 107.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0252/2.952, allocations: 13.58 MB / 0.5593 GB, free: 98.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/2.952, allocations: 7.562 kB / 0.5593 GB, free: 98.45 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01268/2.964, allocations: 4.838 MB / 0.564 GB, free: 96.38 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02223/2.987, allocations: 9.623 MB / 0.5734 GB, free: 90.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/2.989, allocations: 0.5078 MB / 0.5739 GB, free: 89.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006033/2.989, allocations: 24.78 kB / 0.574 GB, free: 89.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/2.992, allocations: 94.33 kB / 0.574 GB, free: 89.51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/2.992, allocations: 133.8 kB / 0.5742 GB, free: 89.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001807/2.993, allocations: 55.08 kB / 0.5742 GB, free: 89.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002523/2.995, allocations: 1.166 MB / 0.5754 GB, free: 88.35 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007138/3.002, allocations: 1.097 MB / 0.5764 GB, free: 87.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulsStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 51,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007505/3.003, allocations: 330.2 kB / 0.5767 GB, free: 87.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01434/3.017, allocations: 5.773 MB / 0.5824 GB, free: 81.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/3.017, allocations: 0 / 0.5824 GB, free: 81.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006009/3.023, allocations: 2.138 MB / 0.5845 GB, free: 79.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003993/3.027, allocations: 382.5 kB / 0.5848 GB, free: 79.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01795/3.045, allocations: 5.2 MB / 0.5899 GB, free: 74.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003662/3.049, allocations: 2.417 MB / 0.5923 GB, free: 72.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.523e-06/3.049, allocations: 4 kB / 0.5923 GB, free: 72.97 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat