Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [: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.503/1.503, allocations: 171.2 MB / 178.1 MB, free: 8.332 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1789/1.682, allocations: 41.11 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08203/1.764, allocations: 38.77 MB / 258 MB, free: 4.355 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/2.052, allocations: 87.57 MB / 345.6 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/2.052, allocations: 82.02 kB / 345.7 MB, free: 0.6797 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.1436/2.196, allocations: 28.9 MB / 374.6 MB, free: 8.766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/2.196, allocations: 8 kB / 374.6 MB, free: 8.758 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/2.197, allocations: 194.3 kB / 374.8 MB, free: 8.566 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/2.2, allocations: 0.8003 MB / 375.6 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.572e-05/2.2, allocations: 32 kB / 375.6 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002905/2.2, allocations: 67.89 kB / 375.7 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001954/2.202, allocations: 0.5273 MB / 376.2 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/2.205, allocations: 0.7474 MB / 376.9 MB, free: 6.324 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.101e-05/2.205, allocations: 15.83 kB / 377 MB, free: 6.309 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/2.205, allocations: 0 / 377 MB, free: 6.309 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-05/2.205, allocations: 28 kB / 377 MB, free: 6.281 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/2.22, allocations: 3.736 MB / 380.7 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/2.22, allocations: 181.8 kB / 380.9 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000905/2.221, allocations: 252.8 kB / 381.1 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.122e-05/2.221, allocations: 7.984 kB / 381.2 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/2.221, allocations: 38.56 kB / 381.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 2.956e-06/2.221, allocations: 0 / 381.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003575/2.225, allocations: 1.107 MB / 382.3 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/2.225, allocations: 85.53 kB / 382.4 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/2.226, allocations: 0.5779 MB / 383 MB, free: 0 / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.349e-05/2.227, allocations: 25.7 kB / 383 MB, free: 15.97 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/2.227, allocations: 469.8 kB / 383.4 MB, free: 15.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/2.227, allocations: 169.5 kB / 383.6 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/2.227, allocations: 0 / 383.6 MB, free: 15.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/2.227, allocations: 390.7 kB / 384 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004501/2.228, allocations: 137.6 kB / 384.1 MB, free: 14.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007034/2.229, allocations: 424.4 kB / 384.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006019/2.229, allocations: 215.8 kB / 384.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/2.229, allocations: 4 kB / 384.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002045/2.231, allocations: 0.6563 MB / 385.4 MB, free: 13.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/2.231, allocations: 4 kB / 385.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/2.231, allocations: 12.38 kB / 385.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005287/2.232, allocations: 105.6 kB / 385.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/2.233, allocations: 155.7 kB / 385.7 MB, free: 13.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004143/2.237, allocations: 2.909 MB / 388.6 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/2.238, allocations: 31.95 kB / 388.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.603e-05/2.239, allocations: 36 kB / 388.7 MB, free: 9.887 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 (84): * Single equations (assignments): 82 * 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.0002089/2.239, allocations: 128.7 kB / 388.8 MB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/2.239, allocations: 82.97 kB / 388.9 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/2.241, allocations: 448.8 kB / 389.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/2.241, allocations: 4 kB / 389.3 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/2.241, allocations: 4 kB / 389.3 MB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/2.241, allocations: 3.984 kB / 389.3 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/2.244, allocations: 1.256 MB / 390.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/2.244, allocations: 4 kB / 390.6 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/2.245, allocations: 71.91 kB / 390.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004954/2.246, allocations: 93.88 kB / 390.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/2.246, allocations: 8 kB / 390.7 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004101/2.25, allocations: 2.89 MB / 393.6 MB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/2.25, allocations: 4 kB / 393.6 MB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002144/2.252, allocations: 0.8085 MB / 394.4 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002729/2.255, allocations: 1.351 MB / 395.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006106/2.256, allocations: 188.1 kB / 396 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/2.256, allocations: 4 kB / 396 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008582/2.257, allocations: 31.92 kB / 396 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/2.257, allocations: 31.89 kB / 396 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/2.257, allocations: 20.06 kB / 396.1 MB, free: 1.941 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001066/2.258, allocations: 447.1 kB / 396.5 MB, free: 1.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002446/2.26, allocations: 196 kB / 396.7 MB, free: 1.32 MB / 330.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 (38): * Single equations (assignments): 36 * 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.0006464/2.261, allocations: 268.2 kB / 397 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00183/2.263, allocations: 0.6266 MB / 397.6 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/2.263, allocations: 0 / 397.6 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/2.264, allocations: 408.4 kB / 398 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/2.266, allocations: 174.8 kB / 398.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004307/2.27, allocations: 1.227 MB / 399.4 MB, free: 14.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/2.271, allocations: 1.096 MB / 400.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/2.271, allocations: 0 / 400.5 MB, free: 13.41 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat