Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.891 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2176/1.858, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/1.945, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/2.24, allocations: 93.17 MB / 387.1 MB, free: 4.453 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/2.24, allocations: 81.58 kB / 387.2 MB, free: 4.441 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.1218/2.362, allocations: 29.27 MB / 416.4 MB, free: 4.469 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/2.362, allocations: 8 kB / 416.4 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/2.363, allocations: 198.3 kB / 416.6 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/2.366, allocations: 0.8072 MB / 417.4 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/2.366, allocations: 32 kB / 417.5 MB, free: 3.574 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/2.366, allocations: 63.89 kB / 417.5 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001852/2.368, allocations: 0.5377 MB / 418.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/2.37, allocations: 0.7635 MB / 418.8 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/2.37, allocations: 0 / 418.8 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/2.37, allocations: 7.938 kB / 418.8 MB, free: 2.617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/2.37, allocations: 31.84 kB / 418.9 MB, free: 2.586 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008317/2.379, allocations: 3.762 MB / 422.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005009/2.379, allocations: 183 kB / 422.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009213/2.38, allocations: 265.5 kB / 423.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/2.38, allocations: 4.625 kB / 423.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/2.38, allocations: 34.44 kB / 423.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.036e-06/2.38, allocations: 0 / 423.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.00335/2.384, allocations: 1.138 MB / 424.2 MB, free: 14.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/2.384, allocations: 81.55 kB / 424.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/2.385, allocations: 0.5874 MB / 424.9 MB, free: 13.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.317e-05/2.385, allocations: 25.7 kB / 424.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003631/2.386, allocations: 479.5 kB / 425.4 MB, free: 13.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/2.386, allocations: 169.2 kB / 425.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/2.386, allocations: 0 / 425.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/2.386, allocations: 388.9 kB / 426 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/2.386, allocations: 141.1 kB / 426.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006908/2.387, allocations: 428.5 kB / 426.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000599/2.388, allocations: 223.8 kB / 426.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/2.388, allocations: 0 / 426.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001991/2.39, allocations: 0.679 MB / 427.4 MB, free: 11.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/2.39, allocations: 8 kB / 427.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/2.39, allocations: 12.34 kB / 427.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005129/2.39, allocations: 107.7 kB / 427.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/2.392, allocations: 168.6 kB / 427.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/2.395, allocations: 2.894 MB / 430.6 MB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/2.396, allocations: 31.89 kB / 430.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.198e-05/2.397, allocations: 37.12 kB / 430.7 MB, free: 8.109 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002278/2.397, allocations: 131.9 kB / 430.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/2.397, allocations: 82.97 kB / 430.9 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/2.399, allocations: 460.9 kB / 431.3 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/2.399, allocations: 7.984 kB / 431.3 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/2.399, allocations: 3.938 kB / 431.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/2.399, allocations: 0 / 431.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/2.402, allocations: 1.291 MB / 432.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/2.402, allocations: 4 kB / 432.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007306/2.403, allocations: 80.11 kB / 432.7 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004617/2.403, allocations: 85.86 kB / 432.8 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/2.403, allocations: 4 kB / 432.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003627/2.407, allocations: 2.893 MB / 435.7 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/2.407, allocations: 3.984 kB / 435.7 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001993/2.409, allocations: 0.83 MB / 436.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002595/2.411, allocations: 1.389 MB / 437.9 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004643/2.412, allocations: 188 kB / 438.1 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/2.412, allocations: 7.984 kB / 438.1 MB, free: 300 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008408/2.413, allocations: 27.98 kB / 438.1 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/2.413, allocations: 31.86 kB / 438.2 MB, free: 240 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/2.413, allocations: 16 kB / 438.2 MB, free: 224 kB / 330.7 MB Notification: Performance of sort global known variables: time 0.001041/2.414, allocations: 451.2 kB / 438.6 MB, free: 15.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002205/2.416, allocations: 208 kB / 438.8 MB, free: 15.58 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005445/2.417, allocations: 278.6 kB / 439.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/2.419, allocations: 0.6266 MB / 439.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/2.419, allocations: 0 / 439.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009872/2.42, allocations: 420.2 kB / 440.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/2.421, allocations: 179.1 kB / 440.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/2.426, allocations: 1.26 MB / 441.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/2.427, allocations: 1.097 MB / 442.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/2.427, allocations: 0 / 442.7 MB, free: 11.63 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat