Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",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.735/1.735, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2169/1.952, allocations: 41.1 MB / 219.2 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/2.085, allocations: 38.76 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/2.403, allocations: 82.45 MB / 340.5 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004129/2.403, allocations: 90.06 kB / 340.6 MB, free: 5.676 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: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.3069/2.71, allocations: 45.95 MB / 386.5 MB, free: 12.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/2.71, allocations: 8 kB / 386.5 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/2.712, allocations: 288.4 kB / 386.8 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006938/2.719, allocations: 1.266 MB / 388.1 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/2.72, allocations: 76 kB / 388.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/2.721, allocations: 115.9 kB / 388.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01012/2.731, allocations: 1.609 MB / 389.9 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/2.746, allocations: 1.447 MB / 391.3 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001879/2.746, allocations: 3.906 kB / 391.3 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006961/2.747, allocations: 0 / 391.3 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/2.747, allocations: 48 kB / 391.4 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04262/2.789, allocations: 7.144 MB / 398.5 MB, free: 468 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006854/2.796, allocations: 1.141 MB / 399.6 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00634/2.803, allocations: 1.12 MB / 400.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/2.804, allocations: 123.1 kB / 400.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.944e-05/2.804, allocations: 60.56 kB / 400.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 1.326e-05/2.804, allocations: 0 / 400.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=347): time 0.1501/2.954, allocations: 12.76 MB / 413.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/2.954, allocations: 90.08 kB / 413.8 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1484/3.102, allocations: 1.482 MB / 415.3 MB, free: 127.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000808/3.103, allocations: 25.7 kB / 415.3 MB, free: 127.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005818/3.104, allocations: 0.6614 MB / 416 MB, free: 127.1 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002109/3.106, allocations: 1.098 MB / 417.1 MB, free: 126.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004879/3.107, allocations: 0 / 417.1 MB, free: 126.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/3.107, allocations: 427.4 kB / 417.5 MB, free: 126.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005225/3.112, allocations: 1.214 MB / 418.7 MB, free: 126.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005042/3.117, allocations: 1.462 MB / 420.1 MB, free: 126.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005577/3.123, allocations: 1.495 MB / 421.6 MB, free: 126.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-05/3.123, allocations: 3.625 kB / 421.6 MB, free: 126.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01505/3.138, allocations: 3.942 MB / 425.6 MB, free: 125.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/3.138, allocations: 3.812 kB / 425.6 MB, free: 125.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.961e-05/3.138, allocations: 7.797 kB / 425.6 MB, free: 125.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006477/3.145, allocations: 0.9789 MB / 426.6 MB, free: 125.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007064/3.152, allocations: 0.6047 MB / 427.2 MB, free: 125.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/3.165, allocations: 9.866 MB / 437 MB, free: 118.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005724/3.171, allocations: 76.22 kB / 437.1 MB, free: 118.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/3.172, allocations: 130.3 kB / 437.2 MB, free: 118.4 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (296): * Single equations (assignments): 288 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 49,3 37} Notification: Performance of prepare postOptimizeDAE: time 0.001219/3.173, allocations: 143.9 kB / 437.4 MB, free: 118.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/3.174, allocations: 254.8 kB / 437.6 MB, free: 118.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/3.19, allocations: 3.932 MB / 441.6 MB, free: 117.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.094e-05/3.19, allocations: 32.78 kB / 441.6 MB, free: 117.9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/3.19, allocations: 3.875 kB / 441.6 MB, free: 117.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.631e-05/3.19, allocations: 17.25 kB / 441.6 MB, free: 117.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03543/3.225, allocations: 8.582 MB / 450.2 MB, free: 114.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/3.225, allocations: 7.656 kB / 450.2 MB, free: 114.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006386/3.232, allocations: 0.5311 MB / 450.7 MB, free: 114.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00525/3.237, allocations: 0.9192 MB / 451.7 MB, free: 113.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008588/3.238, allocations: 47.7 kB / 451.7 MB, free: 113.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/3.251, allocations: 9.67 MB / 461.4 MB, free: 105.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.06481/3.315, allocations: 12.35 MB / 473.7 MB, free: 98.46 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02002/3.336, allocations: 6.05 MB / 479.8 MB, free: 92.96 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02386/3.359, allocations: 8.36 MB / 488.1 MB, free: 84.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/3.362, allocations: 0.7206 MB / 488.9 MB, free: 84.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/3.363, allocations: 6.281 kB / 488.9 MB, free: 84.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005801/3.369, allocations: 96.23 kB / 489 MB, free: 84.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/3.37, allocations: 203.7 kB / 489.2 MB, free: 84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007822/3.371, allocations: 119.9 kB / 489.3 MB, free: 83.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003915/3.375, allocations: 1.132 MB / 490.4 MB, free: 82.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008277/3.384, allocations: 0.6505 MB / 491.1 MB, free: 82.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET1.x,advancedSolenoid.coil1.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 239 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,3 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001882/3.386, allocations: 228.4 kB / 491.3 MB, free: 82.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01511/3.401, allocations: 3.763 MB / 495 MB, free: 78.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/3.401, allocations: 0 / 495 MB, free: 78.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007476/3.408, allocations: 2.358 MB / 497.4 MB, free: 76.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005105/3.413, allocations: 234.3 kB / 497.6 MB, free: 76.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0243/3.438, allocations: 5.245 MB / 0.4911 GB, free: 71.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004531/3.442, allocations: 2.05 MB / 0.4931 GB, free: 69.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/3.442, allocations: 0 / 0.4931 GB, free: 69.79 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat