Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.751/1.751, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2328/1.983, allocations: 41.11 MB / 219.3 MB, free: 11.16 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/2.084, allocations: 38.77 MB / 258 MB, free: 4.332 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3382/2.422, allocations: 84.61 MB / 342.6 MB, free: 3.637 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/2.422, allocations: 78.39 kB / 342.7 MB, free: 3.594 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.2286/2.651, allocations: 43.97 MB / 386.7 MB, free: 12.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/2.651, allocations: 8 kB / 386.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001959/2.653, allocations: 293.4 kB / 387 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005039/2.658, allocations: 1.22 MB / 388.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.863e-05/2.658, allocations: 48 kB / 388.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003859/2.659, allocations: 103.9 kB / 388.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003827/2.662, allocations: 0.8809 MB / 389.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004887/2.667, allocations: 1.214 MB / 390.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/2.668, allocations: 11.84 kB / 390.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/2.668, allocations: 4 kB / 390.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.383e-05/2.668, allocations: 40 kB / 390.5 MB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01661/2.684, allocations: 6.144 MB / 396.6 MB, free: 2.098 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/2.685, allocations: 319 kB / 396.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/2.687, allocations: 427.3 kB / 397.4 MB, free: 1.359 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.912e-05/2.687, allocations: 4.656 kB / 397.4 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/2.687, allocations: 51.14 kB / 397.4 MB, free: 1.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.947e-06/2.687, allocations: 0 / 397.4 MB, free: 1.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.005871/2.693, allocations: 1.673 MB / 399.1 MB, free: 15.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/2.693, allocations: 111.5 kB / 399.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/2.695, allocations: 0.8898 MB / 400.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/2.695, allocations: 25.7 kB / 400.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006079/2.696, allocations: 0.6917 MB / 400.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/2.696, allocations: 252.3 kB / 401 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/2.696, allocations: 0 / 401 MB, free: 13.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/2.697, allocations: 349.9 kB / 401.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007796/2.697, allocations: 226.6 kB / 401.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/2.699, allocations: 0.6736 MB / 402.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/2.701, allocations: 358 kB / 402.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.287e-05/2.701, allocations: 4 kB / 402.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.006396/2.708, allocations: 1.064 MB / 403.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/2.708, allocations: 8.094 kB / 403.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.324e-05/2.708, allocations: 16 kB / 403.7 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009271/2.709, allocations: 114.5 kB / 403.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/2.712, allocations: 275.5 kB / 404.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006116/2.718, allocations: 4.037 MB / 408.1 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/2.721, allocations: 47.98 kB / 408.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004182/2.721, allocations: 52 kB / 408.2 MB, free: 5.75 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005769/2.722, allocations: 152.5 kB / 408.4 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006691/2.723, allocations: 130.4 kB / 408.5 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004122/2.727, allocations: 0.7178 MB / 409.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/2.727, allocations: 8 kB / 409.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/2.727, allocations: 0 / 409.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-05/2.727, allocations: 3.984 kB / 409.2 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007715/2.735, allocations: 2.03 MB / 411.3 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/2.735, allocations: 7.938 kB / 411.3 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/2.736, allocations: 131.8 kB / 411.4 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006756/2.737, allocations: 118.8 kB / 411.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.339e-05/2.737, allocations: 8 kB / 411.5 MB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1343/2.871, allocations: 4.148 MB / 415.7 MB, free: 125.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/2.871, allocations: 3.875 kB / 415.7 MB, free: 125.3 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004656/2.876, allocations: 1.365 MB / 417.1 MB, free: 124.8 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004402/2.88, allocations: 2.041 MB / 419.1 MB, free: 123.9 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/2.882, allocations: 261.9 kB / 419.3 MB, free: 123.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/2.882, allocations: 7.688 kB / 419.4 MB, free: 123.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/2.883, allocations: 43.98 kB / 419.4 MB, free: 123.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/2.883, allocations: 46.78 kB / 419.4 MB, free: 123.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/2.883, allocations: 22.66 kB / 419.5 MB, free: 123.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001446/2.885, allocations: 0.6609 MB / 420.1 MB, free: 123.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003016/2.888, allocations: 318.5 kB / 420.4 MB, free: 123.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000678/2.889, allocations: 343.2 kB / 420.8 MB, free: 123.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002267/2.891, allocations: 0.9701 MB / 421.7 MB, free: 123.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/2.891, allocations: 3.938 kB / 421.7 MB, free: 123.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/2.892, allocations: 0.598 MB / 422.3 MB, free: 123 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002861/2.895, allocations: 288.7 kB / 422.6 MB, free: 123 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008115/2.903, allocations: 2.298 MB / 424.9 MB, free: 122.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001484/2.905, allocations: 1.356 MB / 426.3 MB, free: 121.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.523e-06/2.905, allocations: 0 / 426.3 MB, free: 121.6 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat