Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.619/1.619, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2386/1.858, allocations: 46.83 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/1.946, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2985/2.245, allocations: 89.45 MB / 383.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/2.245, allocations: 85.33 kB / 383.4 MB, free: 5.418 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.1974/2.442, allocations: 45.62 MB / 429.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/2.442, allocations: 12 kB / 429.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/2.444, allocations: 293.4 kB / 429.4 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004566/2.449, allocations: 1.211 MB / 430.6 MB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.223e-05/2.449, allocations: 48 kB / 430.6 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/2.449, allocations: 100.1 kB / 430.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003409/2.453, allocations: 0.8731 MB / 431.6 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003914/2.457, allocations: 1.213 MB / 432.8 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.671e-05/2.457, allocations: 11.84 kB / 432.8 MB, free: 6.312 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/2.457, allocations: 0 / 432.8 MB, free: 6.312 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/2.457, allocations: 43.91 kB / 432.9 MB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0141/2.471, allocations: 6.137 MB / 439 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009279/2.472, allocations: 311.1 kB / 439.3 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/2.474, allocations: 403.3 kB / 439.7 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.185e-05/2.474, allocations: 8.641 kB / 439.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/2.474, allocations: 43.22 kB / 439.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 5.791e-06/2.474, allocations: 0 / 439.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.005223/2.479, allocations: 1.668 MB / 441.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/2.479, allocations: 111.5 kB / 441.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002148/2.481, allocations: 0.9014 MB / 442.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.694e-05/2.481, allocations: 25.7 kB / 442.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005856/2.482, allocations: 0.6878 MB / 443.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/2.482, allocations: 248.3 kB / 443.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/2.482, allocations: 0 / 443.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/2.482, allocations: 349.9 kB / 443.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007303/2.483, allocations: 226.6 kB / 443.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/2.484, allocations: 0.6697 MB / 444.6 MB, free: 9.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/2.485, allocations: 346.9 kB / 444.9 MB, free: 9.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/2.485, allocations: 4 kB / 444.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003589/2.489, allocations: 1.056 MB / 446 MB, free: 8.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/2.489, allocations: 7.906 kB / 446 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/2.489, allocations: 16.59 kB / 446 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/2.49, allocations: 126.5 kB / 446.2 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/2.492, allocations: 263.6 kB / 446.4 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005129/2.497, allocations: 4.056 MB / 450.5 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/2.499, allocations: 39.95 kB / 450.5 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/2.499, allocations: 56 kB / 450.6 MB, free: 3.605 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.0003167/2.499, allocations: 152.2 kB / 450.7 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/2.5, allocations: 126.4 kB / 450.8 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002699/2.502, allocations: 0.71 MB / 451.5 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/2.502, allocations: 8 kB / 451.5 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/2.502, allocations: 4 kB / 451.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/2.502, allocations: 11.89 kB / 451.6 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005883/2.508, allocations: 2 MB / 453.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/2.508, allocations: 4 kB / 453.6 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/2.51, allocations: 135.8 kB / 453.7 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007084/2.511, allocations: 126.3 kB / 453.8 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.41e-05/2.511, allocations: 7.984 kB / 453.8 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00555/2.516, allocations: 4.144 MB / 458 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/2.516, allocations: 11.88 kB / 458 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00364/2.52, allocations: 1.365 MB / 459.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004509/2.524, allocations: 2.005 MB / 461.4 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008753/2.525, allocations: 263.4 kB / 461.6 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/2.526, allocations: 11.98 kB / 461.6 MB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/2.527, allocations: 35.97 kB / 461.7 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/2.527, allocations: 48.38 kB / 461.7 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/2.527, allocations: 20 kB / 461.7 MB, free: 7.684 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001637/2.529, allocations: 0.6633 MB / 462.4 MB, free: 7.016 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002953/2.532, allocations: 328 kB / 462.7 MB, free: 6.695 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.0006672/2.532, allocations: 322.2 kB / 463 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002638/2.535, allocations: 0.9666 MB / 464 MB, free: 5.402 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/2.535, allocations: 1 kB / 464 MB, free: 5.402 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/2.537, allocations: 0.5977 MB / 464.6 MB, free: 4.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/2.539, allocations: 285.4 kB / 464.9 MB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008513/2.548, allocations: 2.31 MB / 467.2 MB, free: 2.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/2.55, allocations: 1.352 MB / 468.5 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of SimCode: time 1.753e-06/2.55, allocations: 0 / 468.5 MB, free: 0.7188 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat