Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.59/1.59, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2158/1.805, allocations: 46.83 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/1.891, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/2.204, allocations: 107.6 MB / 401.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/2.204, allocations: 82.83 kB / 401.6 MB, free: 14.14 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.2633/2.468, allocations: 60.15 MB / 461.7 MB, free: 9.758 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/2.468, allocations: 12 kB / 461.7 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/2.47, allocations: 399.6 kB / 462.1 MB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007872/2.478, allocations: 2.184 MB / 464.3 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/2.478, allocations: 92 kB / 464.4 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007462/2.479, allocations: 171.9 kB / 464.5 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009033/2.488, allocations: 2.725 MB / 467.3 MB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009719/2.497, allocations: 3.215 MB / 470.5 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/2.498, allocations: 7.906 kB / 470.5 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/2.498, allocations: 0 / 470.5 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/2.498, allocations: 137.5 kB / 470.6 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/2.529, allocations: 11.11 MB / 481.7 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003109/2.532, allocations: 1.093 MB / 482.8 MB, free: 4.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002667/2.535, allocations: 0.9922 MB / 483.8 MB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004994/2.535, allocations: 223.5 kB / 484 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/2.535, allocations: 55.86 kB / 484.1 MB, free: 2.785 MB / 378.7 MB Notification: Performance of pre-optimization done (n=133): time 4.138e-06/2.535, allocations: 0 / 484.1 MB, free: 2.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01965/2.555, allocations: 5.633 MB / 489.7 MB, free: 13.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/2.555, allocations: 68.72 kB / 489.8 MB, free: 13.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/2.559, allocations: 1.469 MB / 491.3 MB, free: 11.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003263/2.559, allocations: 25.7 kB / 491.3 MB, free: 11.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009816/2.56, allocations: 1.115 MB / 492.4 MB, free: 10.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007149/2.561, allocations: 0.5043 MB / 492.9 MB, free: 9.875 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/2.561, allocations: 0 / 492.9 MB, free: 9.875 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002277/2.561, allocations: 385.7 kB / 493.3 MB, free: 9.492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002416/2.564, allocations: 0.8591 MB / 494.2 MB, free: 8.633 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002868/2.567, allocations: 1.384 MB / 495.5 MB, free: 7.008 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/2.57, allocations: 1.111 MB / 496.6 MB, free: 5.898 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/2.57, allocations: 4 kB / 496.7 MB, free: 5.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.009062/2.579, allocations: 2.861 MB / 499.5 MB, free: 3.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/2.579, allocations: 4 kB / 499.5 MB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.655e-05/2.579, allocations: 20 kB / 499.5 MB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002732/2.582, allocations: 0.5335 MB / 0.4883 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003703/2.585, allocations: 427.4 kB / 0.4888 GB, free: 2.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.173/2.758, allocations: 5.704 MB / 0.4943 GB, free: 57.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/2.761, allocations: 69.16 kB / 0.4944 GB, free: 57.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/2.762, allocations: 80.62 kB / 0.4945 GB, free: 57.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * 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: 2 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004408/2.762, allocations: 157.8 kB / 0.4946 GB, free: 56.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000457/2.763, allocations: 206.1 kB / 0.4948 GB, free: 56.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007625/2.77, allocations: 2.561 MB / 0.4973 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/2.77, allocations: 14.69 kB / 0.4973 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/2.77, allocations: 5.719 kB / 0.4973 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/2.77, allocations: 9.375 kB / 0.4973 GB, free: 56.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/2.785, allocations: 5.318 MB / 0.5025 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/2.785, allocations: 3.406 kB / 0.5025 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/2.788, allocations: 249.6 kB / 0.5028 GB, free: 56.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002888/2.79, allocations: 0.5704 MB / 0.5033 GB, free: 56.35 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/2.791, allocations: 19.56 kB / 0.5034 GB, free: 56.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/2.803, allocations: 7.33 MB / 0.5105 GB, free: 52.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.198e-06/2.803, allocations: 6.906 kB / 0.5105 GB, free: 52.73 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009645/2.813, allocations: 4.083 MB / 0.5145 GB, free: 52.17 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01226/2.825, allocations: 5.78 MB / 0.5202 GB, free: 51.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/2.827, allocations: 482.6 kB / 0.5206 GB, free: 50.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004992/2.828, allocations: 13.22 kB / 0.5206 GB, free: 50.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/2.83, allocations: 53.2 kB / 0.5207 GB, free: 50.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/2.83, allocations: 89.61 kB / 0.5208 GB, free: 50.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/2.83, allocations: 48.44 kB / 0.5208 GB, free: 50.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00241/2.832, allocations: 1.099 MB / 0.5219 GB, free: 50.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003864/2.836, allocations: 0.5357 MB / 0.5224 GB, free: 50.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008226/2.837, allocations: 373.3 kB / 0.5228 GB, free: 50.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00578/2.843, allocations: 2.494 MB / 0.5252 GB, free: 50.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/2.843, allocations: 7.312 kB / 0.5252 GB, free: 50.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003677/2.847, allocations: 1.477 MB / 0.5266 GB, free: 50.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/2.85, allocations: 408.1 kB / 0.527 GB, free: 50.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/2.864, allocations: 4.635 MB / 0.5316 GB, free: 49.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003937/2.868, allocations: 2.41 MB / 0.5339 GB, free: 48.32 MB / 394.7 MB Notification: Performance of SimCode: time 1.293e-06/2.868, allocations: 0 / 0.5339 GB, free: 48.32 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_VoltageSource_res.mat does not exist to compare? outputFormat=mat