Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_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.629/1.629, allocations: 194.9 MB / 202.5 MB, free: 6.914 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2661/1.895, allocations: 46.84 MB / 249.3 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/1.988, allocations: 44.5 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3374/2.325, allocations: 89.45 MB / 383.3 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003855/2.326, allocations: 86.91 kB / 383.4 MB, free: 5.395 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.2383/2.564, allocations: 45.61 MB / 429 MB, free: 10.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/2.564, allocations: 8 kB / 429 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/2.566, allocations: 293.4 kB / 429.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/2.571, allocations: 1.215 MB / 430.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.023e-05/2.571, allocations: 48 kB / 430.5 MB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003229/2.571, allocations: 104.1 kB / 430.7 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003143/2.574, allocations: 0.8692 MB / 431.5 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003553/2.578, allocations: 1.221 MB / 432.7 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.208e-05/2.578, allocations: 3.906 kB / 432.7 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/2.578, allocations: 4 kB / 432.7 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/2.578, allocations: 43.89 kB / 432.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01428/2.592, allocations: 6.129 MB / 438.9 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009722/2.593, allocations: 317.6 kB / 439.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/2.595, allocations: 403.3 kB / 439.6 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.179e-05/2.595, allocations: 8.656 kB / 439.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/2.595, allocations: 39.22 kB / 439.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 5.811e-06/2.595, allocations: 0 / 439.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.005332/2.6, allocations: 1.66 MB / 441.3 MB, free: 13.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/2.6, allocations: 111.5 kB / 441.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/2.603, allocations: 0.9014 MB / 442.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/2.603, allocations: 25.7 kB / 442.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005717/2.603, allocations: 0.6878 MB / 443.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/2.604, allocations: 248.3 kB / 443.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.944e-05/2.604, allocations: 0 / 443.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/2.604, allocations: 353.9 kB / 443.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007152/2.605, allocations: 230.6 kB / 443.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/2.606, allocations: 0.6658 MB / 444.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009338/2.607, allocations: 342.9 kB / 444.9 MB, free: 9.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/2.607, allocations: 8 kB / 444.9 MB, free: 9.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003447/2.61, allocations: 1.071 MB / 445.9 MB, free: 8.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/2.61, allocations: 7.906 kB / 446 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.054e-05/2.61, allocations: 19.98 kB / 446 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006344/2.611, allocations: 115.1 kB / 446.1 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/2.613, allocations: 271.5 kB / 446.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004821/2.618, allocations: 4.04 MB / 450.4 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/2.619, allocations: 48.05 kB / 450.4 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/2.62, allocations: 55.98 kB / 450.5 MB, free: 3.727 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.0003334/2.62, allocations: 156.3 kB / 450.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/2.62, allocations: 130.4 kB / 450.8 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/2.623, allocations: 0.7022 MB / 451.5 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/2.623, allocations: 8 kB / 451.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/2.623, allocations: 0 / 451.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/2.623, allocations: 7.891 kB / 451.5 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005772/2.629, allocations: 2.011 MB / 453.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/2.629, allocations: 7.984 kB / 453.5 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/2.63, allocations: 136.3 kB / 453.6 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/2.631, allocations: 114.4 kB / 453.8 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/2.631, allocations: 11.98 kB / 453.8 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005329/2.636, allocations: 4.148 MB / 457.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/2.636, allocations: 7.938 kB / 457.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003463/2.64, allocations: 1.352 MB / 459.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004266/2.644, allocations: 2.013 MB / 461.3 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008709/2.645, allocations: 271.4 kB / 461.6 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/2.645, allocations: 4 kB / 461.6 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/2.646, allocations: 35.97 kB / 461.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/2.647, allocations: 44.44 kB / 461.6 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.849e-05/2.647, allocations: 24 kB / 461.7 MB, free: 7.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001637/2.648, allocations: 0.6594 MB / 462.3 MB, free: 7.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003035/2.651, allocations: 324 kB / 462.6 MB, free: 6.824 MB / 362.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.0007183/2.652, allocations: 348.8 kB / 463 MB, free: 6.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002575/2.655, allocations: 0.9614 MB / 463.9 MB, free: 5.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/2.655, allocations: 0 / 463.9 MB, free: 5.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/2.656, allocations: 0.5961 MB / 464.5 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/2.659, allocations: 292.8 kB / 464.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008827/2.668, allocations: 2.293 MB / 467.1 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/2.67, allocations: 1.356 MB / 468.5 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/2.67, allocations: 0 / 468.5 MB, free: 0.8398 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat