Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.016/1.016, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.112e-05, allocations: 4 kB / 151.5 MB, free: 15.53 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1681, allocations: 25.15 MB / 176.7 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0722/0.2404, allocations: 42.24 MB / 218.9 MB, free: 7.098 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.2407, allocations: 79.88 kB / 219 MB, free: 7.02 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1537/0.3944, allocations: 35.01 MB / 254 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3944, allocations: 0 / 254 MB, free: 3.875 MB / 218.7 MB Notification: Performance of Transformations before backend: time 6.086e-05/0.3945, allocations: 20 kB / 254 MB, free: 3.855 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.003711/0.3982, allocations: 1.119 MB / 255.1 MB, free: 2.688 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.3983, allocations: 8.031 kB / 255.1 MB, free: 2.68 MB / 218.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003551/0.3987, allocations: 143.9 kB / 255.3 MB, free: 2.531 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003328/0.399, allocations: 118.6 kB / 255.4 MB, free: 2.414 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.4004, allocations: 0.5764 MB / 256 MB, free: 1.797 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.4006, allocations: 81.94 kB / 256 MB, free: 1.715 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.4009, allocations: 99.84 kB / 256.1 MB, free: 1.617 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/0.4034, allocations: 0.9074 MB / 257 MB, free: 0.6914 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.431e-05/0.4034, allocations: 0 / 257 MB, free: 0.6914 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.4036, allocations: 40 kB / 257.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.911e-05/0.4036, allocations: 24 kB / 257.1 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1487/0.5524, allocations: 0.7397 MB / 257.8 MB, free: 53.81 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008607/0.5611, allocations: 3.502 MB / 261.3 MB, free: 52.88 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.5629, allocations: 0.7327 MB / 262.1 MB, free: 52.82 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.5641, allocations: 453.9 kB / 262.5 MB, free: 52.8 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-05/0.5642, allocations: 12.19 kB / 262.5 MB, free: 52.8 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.5642, allocations: 40.84 kB / 262.6 MB, free: 52.76 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 3.587e-06/0.5642, allocations: 0 / 262.6 MB, free: 52.76 MB / 218.7 MB Notification: Performance of matching and sorting (n=127): time 0.01358/0.5778, allocations: 4.186 MB / 266.8 MB, free: 51.54 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.5779, allocations: 90.08 kB / 266.9 MB, free: 51.44 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009168/0.5789, allocations: 0.5242 MB / 267.4 MB, free: 51.33 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.579, allocations: 46.42 kB / 267.4 MB, free: 51.3 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.5792, allocations: 435.2 kB / 267.8 MB, free: 51.06 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.5796, allocations: 433.9 kB / 268.3 MB, free: 50.8 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/0.5797, allocations: 28.22 kB / 268.3 MB, free: 50.8 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 9.793e-05/0.5798, allocations: 355.6 kB / 268.6 MB, free: 50.48 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009382/0.5808, allocations: 362.2 kB / 269 MB, free: 50.48 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009951/0.5818, allocations: 495.2 kB / 269.5 MB, free: 50.38 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.5828, allocations: 417.1 kB / 269.9 MB, free: 50.37 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5828, allocations: 0 / 269.9 MB, free: 50.37 MB / 218.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002743/0.5856, allocations: 1.143 MB / 271 MB, free: 50.12 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.5856, allocations: 5.875 kB / 271 MB, free: 50.12 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.5856, allocations: 3.312 kB / 271 MB, free: 50.12 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.5863, allocations: 148 kB / 271.2 MB, free: 50.06 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/0.5884, allocations: 281.1 kB / 271.5 MB, free: 50.05 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.5927, allocations: 4.763 MB / 276.2 MB, free: 45.57 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.5943, allocations: 87.66 kB / 276.3 MB, free: 45.54 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.5945, allocations: 41.28 kB / 276.3 MB, free: 45.54 MB / 218.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002948/0.5948, allocations: 177.7 kB / 276.5 MB, free: 45.39 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002315/0.595, allocations: 94.75 kB / 276.6 MB, free: 45.34 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.5969, allocations: 0.7656 MB / 277.4 MB, free: 44.97 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.597, allocations: 23.23 kB / 277.4 MB, free: 44.97 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.597, allocations: 7.266 kB / 277.4 MB, free: 44.97 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.597, allocations: 3.844 kB / 277.4 MB, free: 44.97 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005815/0.6029, allocations: 2.914 MB / 280.3 MB, free: 43.38 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6029, allocations: 3.406 kB / 280.3 MB, free: 43.38 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00196/0.6049, allocations: 245.8 kB / 280.6 MB, free: 43.36 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005523/0.6054, allocations: 125.8 kB / 280.7 MB, free: 43.31 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.6056, allocations: 27.09 kB / 280.7 MB, free: 43.3 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003504/0.6091, allocations: 4.386 MB / 285.1 MB, free: 39.04 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.6091, allocations: 3.938 kB / 285.1 MB, free: 39.04 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/0.6129, allocations: 1.906 MB / 287 MB, free: 37.88 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.6133, allocations: 166.2 kB / 287.2 MB, free: 37.73 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.6135, allocations: 31.39 kB / 287.2 MB, free: 37.71 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.6148, allocations: 77.7 kB / 287.3 MB, free: 37.7 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.615, allocations: 86.05 kB / 287.4 MB, free: 37.68 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.6152, allocations: 41.45 kB / 287.4 MB, free: 37.68 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0007253/0.6159, allocations: 417.8 kB / 287.8 MB, free: 37.47 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.263e-06/0.6159, allocations: 0 / 287.8 MB, free: 37.47 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001542/0.6175, allocations: 272 kB / 288.1 MB, free: 37.43 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.mmf_PM.Phi,pmActuator.armature.stopper_xMin.v_rel,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 115 * 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: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004178/0.6217, allocations: 3.265 MB / 291.3 MB, free: 34.97 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002936/0.6246, allocations: 1.309 MB / 292.7 MB, free: 34.28 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.6247, allocations: 0 / 292.7 MB, free: 34.28 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.6264, allocations: 0.8817 MB / 293.5 MB, free: 33.73 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.6281, allocations: 173.6 kB / 293.7 MB, free: 33.69 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.6333, allocations: 1.966 MB / 295.7 MB, free: 32.58 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.6339, allocations: 1.05 MB / 296.7 MB, free: 31.64 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009408/0.6349, allocations: 392.2 kB / 297.1 MB, free: 31.29 MB / 218.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6349, allocations: 3.938 kB / 297.1 MB, free: 31.29 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.072/3.707, allocations: 30.66 MB / 327.8 MB, free: 4.289 MB / 218.7 MB