Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",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.64/1.64, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2202/1.86, allocations: 46.83 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/1.947, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3105/2.257, allocations: 104 MB / 398 MB, free: 296 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/2.258, allocations: 83.23 kB / 398 MB, free: 284 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.2415/2.499, allocations: 56.76 MB / 454.8 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/2.499, allocations: 8 kB / 454.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00186/2.501, allocations: 356 kB / 455.2 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006894/2.508, allocations: 1.956 MB / 457.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/2.508, allocations: 80 kB / 457.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006826/2.509, allocations: 151.9 kB / 457.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008591/2.518, allocations: 2.61 MB / 459.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009104/2.527, allocations: 3.003 MB / 463 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/2.527, allocations: 15.89 kB / 463 MB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003472/2.527, allocations: 4 kB / 463 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/2.527, allocations: 116.8 kB / 463.1 MB, free: 8.242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02906/2.556, allocations: 10.47 MB / 473.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/2.559, allocations: 1.042 MB / 474.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002857/2.562, allocations: 1.098 MB / 475.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004369/2.563, allocations: 138.4 kB / 475.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/2.563, allocations: 47.88 kB / 475.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.699e-06/2.563, allocations: 0 / 475.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01661/2.579, allocations: 5.038 MB / 480.9 MB, free: 6.055 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/2.58, allocations: 98.41 kB / 481 MB, free: 5.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/2.583, allocations: 1.342 MB / 482.4 MB, free: 4.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/2.583, allocations: 25.7 kB / 482.4 MB, free: 4.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008152/2.584, allocations: 0.9552 MB / 483.3 MB, free: 3.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006966/2.585, allocations: 492.6 kB / 483.8 MB, free: 3.102 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/2.585, allocations: 3.938 kB / 483.8 MB, free: 3.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000215/2.585, allocations: 377.9 kB / 484.2 MB, free: 2.723 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00224/2.587, allocations: 0.8122 MB / 485 MB, free: 1.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002618/2.59, allocations: 1.263 MB / 486.3 MB, free: 460 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00269/2.593, allocations: 1.017 MB / 487.3 MB, free: 15.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.301e-05/2.593, allocations: 4 kB / 487.3 MB, free: 15.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007854/2.601, allocations: 2.675 MB / 490 MB, free: 12.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002169/2.603, allocations: 5.517 MB / 495.5 MB, free: 6.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.767e-05/2.603, allocations: 16 kB / 495.5 MB, free: 6.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003011/2.606, allocations: 0.6707 MB / 496.2 MB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/2.609, allocations: 363.4 kB / 496.5 MB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1392/2.748, allocations: 7.504 MB / 0.4922 GB, free: 133.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/2.751, allocations: 60.17 kB / 0.4923 GB, free: 133.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/2.751, allocations: 72.97 kB / 0.4923 GB, free: 133.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/2.751, allocations: 3.594 kB / 0.4923 GB, free: 133.2 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006351/2.758, allocations: 2.457 MB / 0.4947 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.211e-05/2.758, allocations: 17.75 kB / 0.4948 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/2.76, allocations: 0.6675 MB / 0.4954 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002893/2.763, allocations: 356 kB / 0.4957 GB, free: 133.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/2.775, allocations: 7.504 MB / 0.5031 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/2.778, allocations: 45.73 kB / 0.5031 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/2.778, allocations: 70.64 kB / 0.5032 GB, free: 129.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 3 * 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: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004915/2.778, allocations: 157.3 kB / 0.5033 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004367/2.779, allocations: 187.1 kB / 0.5035 GB, free: 129.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00694/2.786, allocations: 2.481 MB / 0.5059 GB, free: 129.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/2.786, allocations: 14.38 kB / 0.5059 GB, free: 129.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/2.786, allocations: 3.969 kB / 0.506 GB, free: 129.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/2.786, allocations: 10.88 kB / 0.506 GB, free: 129.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/2.799, allocations: 4.899 MB / 0.5107 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/2.799, allocations: 3.875 kB / 0.5107 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/2.801, allocations: 232 kB / 0.511 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00289/2.804, allocations: 0.7017 MB / 0.5117 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/2.804, allocations: 15.75 kB / 0.5117 GB, free: 128.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0136/2.818, allocations: 8.955 MB / 0.5204 GB, free: 124 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.016e-06/2.818, allocations: 3.469 kB / 0.5204 GB, free: 124 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008656/2.826, allocations: 3.855 MB / 0.5242 GB, free: 123.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01125/2.838, allocations: 5.516 MB / 0.5296 GB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001467/2.839, allocations: 456.6 kB / 0.53 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004565/2.84, allocations: 8 kB / 0.53 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/2.841, allocations: 59.73 kB / 0.5301 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/2.842, allocations: 94.66 kB / 0.5302 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/2.842, allocations: 43.78 kB / 0.5302 GB, free: 121.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002151/2.844, allocations: 1.006 MB / 0.5312 GB, free: 121.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00615/2.85, allocations: 0.9289 MB / 0.5321 GB, free: 121.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007965/2.851, allocations: 388.2 kB / 0.5325 GB, free: 121 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008775/2.86, allocations: 4.203 MB / 0.5366 GB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/2.86, allocations: 0 / 0.5366 GB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003333/2.863, allocations: 1.562 MB / 0.5381 GB, free: 118.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003972/2.867, allocations: 471.3 kB / 0.5385 GB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/2.882, allocations: 4.496 MB / 0.5429 GB, free: 116.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003874/2.886, allocations: 2.252 MB / 0.5451 GB, free: 115.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.853e-06/2.886, allocations: 1 kB / 0.5451 GB, free: 115.6 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.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat