Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.756/1.756, allocations: 171.2 MB / 178.1 MB, free: 8.273 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1866/1.943, allocations: 41.1 MB / 219.3 MB, free: 11.17 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/2.034, allocations: 38.77 MB / 258 MB, free: 4.34 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3162/2.35, allocations: 78.76 MB / 336.8 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004436/2.35, allocations: 84.83 kB / 336.9 MB, free: 9.273 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.1451/2.495, allocations: 22.22 MB / 359.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/2.496, allocations: 8 kB / 359.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008845/2.496, allocations: 130.4 kB / 359.2 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/2.5, allocations: 0.644 MB / 359.9 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/2.5, allocations: 53.94 kB / 359.9 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005621/2.501, allocations: 55.91 kB / 360 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003982/2.505, allocations: 0.7202 MB / 360.7 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/2.507, allocations: 0.792 MB / 361.5 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/2.508, allocations: 4 kB / 361.5 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/2.508, allocations: 3.906 kB / 361.5 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.349e-05/2.508, allocations: 24 kB / 361.5 MB, free: 4.988 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/2.519, allocations: 3.678 MB / 365.2 MB, free: 1.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002467/2.521, allocations: 0.5679 MB / 365.8 MB, free: 1.395 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/2.522, allocations: 362.6 kB / 366.1 MB, free: 1.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.768e-05/2.522, allocations: 8.562 kB / 366.1 MB, free: 1.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/2.522, allocations: 39.12 kB / 366.2 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 5.541e-06/2.522, allocations: 4 kB / 366.2 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of matching and sorting (n=86): time 0.005347/2.528, allocations: 1.389 MB / 367.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/2.528, allocations: 89.55 kB / 367.6 MB, free: 15.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/2.53, allocations: 0.6834 MB / 368.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/2.53, allocations: 25.7 kB / 368.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/2.53, allocations: 414.8 kB / 368.8 MB, free: 14.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003513/2.53, allocations: 279.9 kB / 369 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/2.531, allocations: 0 / 369 MB, free: 14.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002657/2.531, allocations: 399.8 kB / 369.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000966/2.532, allocations: 282 kB / 369.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/2.533, allocations: 436 kB / 370.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/2.534, allocations: 326.9 kB / 370.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/2.534, allocations: 3.938 kB / 370.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002732/2.537, allocations: 0.831 MB / 371.3 MB, free: 11.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/2.537, allocations: 15.97 kB / 371.3 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/2.537, allocations: 7.906 kB / 371.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.151e-05/2.537, allocations: 11.98 kB / 371.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003191/2.54, allocations: 371.5 kB / 371.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.293e-05/2.54, allocations: 8 kB / 371.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/2.542, allocations: 107.9 kB / 371.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/2.542, allocations: 39.98 kB / 371.8 MB, free: 11.19 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002861/2.543, allocations: 128.7 kB / 372 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/2.543, allocations: 90.88 kB / 372 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/2.544, allocations: 337.5 kB / 372.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/2.544, allocations: 8 kB / 372.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/2.544, allocations: 4 kB / 372.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/2.544, allocations: 7.984 kB / 372.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009613/2.554, allocations: 2.659 MB / 375.1 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.79e-05/2.554, allocations: 12 kB / 375.1 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002613/2.557, allocations: 292 kB / 375.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.385e-05/2.557, allocations: 16 kB / 375.4 MB, free: 7.445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/2.557, allocations: 15.98 kB / 375.4 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.441e-05/2.557, allocations: 23.94 kB / 375.4 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.126e-05/2.557, allocations: 15.94 kB / 375.4 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00276/2.56, allocations: 1.624 MB / 377 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002877/2.563, allocations: 2.008 MB / 379.1 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/2.563, allocations: 195.9 kB / 379.2 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/2.563, allocations: 16 kB / 379.3 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/2.565, allocations: 75.94 kB / 379.3 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/2.565, allocations: 79.67 kB / 379.4 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/2.565, allocations: 39.98 kB / 379.4 MB, free: 2.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001227/2.566, allocations: 0.5148 MB / 380 MB, free: 1.949 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002383/2.569, allocations: 207.9 kB / 380.2 MB, free: 1.746 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006756/2.57, allocations: 214.3 kB / 380.4 MB, free: 1.551 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002149/2.572, allocations: 0.7003 MB / 381.1 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/2.572, allocations: 0 / 381.1 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/2.573, allocations: 386.8 kB / 381.5 MB, free: 480 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/2.575, allocations: 139.6 kB / 381.6 MB, free: 340 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/2.581, allocations: 1.531 MB / 383.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/2.582, allocations: 1.156 MB / 384.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/2.583, allocations: 0 / 384.3 MB, free: 13.44 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat