Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",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.642/1.642, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2179/1.86, allocations: 46.84 MB / 249.4 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/1.949, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.315/2.264, allocations: 105 MB / 399 MB, free: 15.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/2.264, allocations: 88.62 kB / 399 MB, free: 15.85 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.2973/2.562, allocations: 67.75 MB / 466.8 MB, free: 4.758 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/2.562, allocations: 8 kB / 466.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/2.564, allocations: 447.2 kB / 467.2 MB, free: 4.309 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008508/2.573, allocations: 2.394 MB / 469.6 MB, free: 1.863 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/2.573, allocations: 100 kB / 469.7 MB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/2.574, allocations: 183.9 kB / 469.9 MB, free: 1.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01253/2.587, allocations: 3.382 MB / 473.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/2.601, allocations: 3.854 MB / 477.1 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/2.601, allocations: 15.84 kB / 477.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004741/2.602, allocations: 4 kB / 477.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/2.602, allocations: 126 kB / 477.3 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04189/2.644, allocations: 13.09 MB / 490.4 MB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003845/2.648, allocations: 1.326 MB / 491.7 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004409/2.652, allocations: 1.584 MB / 493.3 MB, free: 9.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005359/2.653, allocations: 147 kB / 493.4 MB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/2.653, allocations: 52.56 kB / 493.5 MB, free: 9.461 MB / 394.7 MB Notification: Performance of pre-optimization done (n=167): time 4.518e-06/2.653, allocations: 0 / 493.5 MB, free: 9.461 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.02276/2.676, allocations: 6.42 MB / 499.9 MB, free: 2.969 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/2.676, allocations: 73.41 kB / 500 MB, free: 2.883 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004516/2.68, allocations: 1.727 MB / 0.4899 GB, free: 1.121 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003036/2.681, allocations: 25.7 kB / 0.49 GB, free: 1.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1313/2.812, allocations: 1.12 MB / 0.4911 GB, free: 129.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009572/2.813, allocations: 0.592 MB / 0.4916 GB, free: 129.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/2.813, allocations: 2.656 kB / 0.4916 GB, free: 129.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/2.813, allocations: 386.4 kB / 0.492 GB, free: 129 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002512/2.816, allocations: 1.089 MB / 0.4931 GB, free: 129 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002717/2.819, allocations: 1.473 MB / 0.4945 GB, free: 128.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/2.822, allocations: 1.298 MB / 0.4958 GB, free: 128.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.982e-05/2.822, allocations: 5.125 kB / 0.4958 GB, free: 128.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.009787/2.832, allocations: 3.375 MB / 0.4991 GB, free: 128.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/2.832, allocations: 7.469 kB / 0.4991 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.9e-05/2.832, allocations: 15 kB / 0.4991 GB, free: 128.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004488/2.836, allocations: 0.8131 MB / 0.4999 GB, free: 128.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/2.84, allocations: 450.3 kB / 0.5003 GB, free: 128.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01401/2.854, allocations: 10.12 MB / 0.5102 GB, free: 122 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/2.858, allocations: 69.98 kB / 0.5103 GB, free: 122 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/2.858, allocations: 78.02 kB / 0.5104 GB, free: 122 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 207 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005035/2.859, allocations: 155.2 kB / 0.5105 GB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005205/2.859, allocations: 230.8 kB / 0.5107 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00871/2.868, allocations: 3.181 MB / 0.5138 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/2.868, allocations: 17.91 kB / 0.5138 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/2.868, allocations: 7.062 kB / 0.5139 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/2.868, allocations: 9.188 kB / 0.5139 GB, free: 121.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/2.886, allocations: 6.476 MB / 0.5202 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/2.886, allocations: 0 / 0.5202 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002868/2.889, allocations: 312.8 kB / 0.5205 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004278/2.893, allocations: 0.9059 MB / 0.5214 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002233/2.893, allocations: 20.5 kB / 0.5214 GB, free: 121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01637/2.91, allocations: 12.65 MB / 0.5337 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/2.91, allocations: 3.906 kB / 0.5337 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01168/2.921, allocations: 4.921 MB / 0.5385 GB, free: 111.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01494/2.936, allocations: 6.982 MB / 0.5454 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/2.938, allocations: 0.5548 MB / 0.5459 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006969/2.939, allocations: 17.84 kB / 0.5459 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002574/2.942, allocations: 82.48 kB / 0.546 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004218/2.942, allocations: 119.6 kB / 0.5461 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/2.942, allocations: 50.75 kB / 0.5462 GB, free: 107.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002858/2.945, allocations: 1.315 MB / 0.5474 GB, free: 107.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004377/2.95, allocations: 0.6482 MB / 0.5481 GB, free: 107.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * 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: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(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.0008617/2.95, allocations: 333.9 kB / 0.5484 GB, free: 107.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007296/2.958, allocations: 3.383 MB / 0.5517 GB, free: 105.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/2.958, allocations: 0 / 0.5517 GB, free: 105.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005165/2.963, allocations: 2.317 MB / 0.554 GB, free: 104.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004555/2.968, allocations: 0.4935 MB / 0.5544 GB, free: 104.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/2.985, allocations: 5.57 MB / 0.5599 GB, free: 102.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00478/2.99, allocations: 2.741 MB / 0.5626 GB, free: 100.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.984e-06/2.99, allocations: 0 / 0.5626 GB, free: 100.7 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.AIMS_Start_res.mat does not exist to compare? outputFormat=mat