Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.371e-05/2.383e-05, allocations: 3.938 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2614, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.4028, allocations: 82.21 MB / 340.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.4032, allocations: 87.89 kB / 340.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.398/0.8013, allocations: 43.67 MB / 384.3 MB, free: 81.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.8013, allocations: 0 / 384.3 MB, free: 81.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000151/0.8015, allocations: 47.16 kB / 384.3 MB, free: 81.25 MB / 314.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.007241/0.8087, allocations: 2.303 MB / 386.6 MB, free: 80.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.8088, allocations: 19.86 kB / 386.7 MB, free: 80.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007907/0.8096, allocations: 289.4 kB / 387 MB, free: 80 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.813, allocations: 1.27 MB / 388.2 MB, free: 79.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.8132, allocations: 68.06 kB / 388.3 MB, free: 79.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004395/0.8136, allocations: 115.8 kB / 388.4 MB, free: 79.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004701/0.8183, allocations: 1.603 MB / 390 MB, free: 78.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004196/0.8226, allocations: 1.441 MB / 391.4 MB, free: 78.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.851e-05/0.8227, allocations: 3.906 kB / 391.4 MB, free: 78.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002318/0.8229, allocations: 1.969 kB / 391.5 MB, free: 78.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.771e-05/0.823, allocations: 49.41 kB / 391.5 MB, free: 78.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/0.8418, allocations: 7.136 MB / 398.6 MB, free: 74.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004047/0.8458, allocations: 2.048 MB / 400.7 MB, free: 72.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002977/0.8489, allocations: 1.173 MB / 401.9 MB, free: 71.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003204/0.8492, allocations: 125.7 kB / 402 MB, free: 71.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.854e-05/0.8493, allocations: 59.84 kB / 402 MB, free: 71.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=226): time 5.109e-06/0.8493, allocations: 0 / 402 MB, free: 71.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=347): time 0.07949/0.9288, allocations: 12.99 MB / 415 MB, free: 58.31 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.9289, allocations: 86.12 kB / 415.1 MB, free: 58.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003145/0.932, allocations: 1.489 MB / 416.6 MB, free: 56.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007192/0.9328, allocations: 25.7 kB / 416.6 MB, free: 56.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006881/0.9335, allocations: 0.8945 MB / 417.5 MB, free: 55.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001351/0.9349, allocations: 1.1 MB / 418.6 MB, free: 54.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003649/0.9353, allocations: 0 / 418.6 MB, free: 54.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.9355, allocations: 437.5 kB / 419 MB, free: 54.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00329/0.9388, allocations: 1.248 MB / 420.3 MB, free: 52.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003739/0.9426, allocations: 1.512 MB / 421.8 MB, free: 51.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004626/0.9472, allocations: 1.513 MB / 423.3 MB, free: 49.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/0.9473, allocations: 0 / 423.3 MB, free: 49.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01151/0.9588, allocations: 3.837 MB / 427.2 MB, free: 46.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.325e-05/0.9589, allocations: 29.7 kB / 427.2 MB, free: 45.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.9589, allocations: 4 kB / 427.2 MB, free: 45.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004756/0.9637, allocations: 0.9454 MB / 428.1 MB, free: 45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006278/0.97, allocations: 0.5967 MB / 428.7 MB, free: 44.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.9806, allocations: 9.788 MB / 438.5 MB, free: 34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00501/0.9856, allocations: 99.94 kB / 438.6 MB, free: 33.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005842/0.9862, allocations: 135.9 kB / 438.7 MB, free: 33.77 MB / 314.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 (301): * Single equations (assignments): 291 * Array equations: 2 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 45,3 37} Notification: Performance of prepare postOptimizeDAE: time 0.0008218/0.9871, allocations: 147.2 kB / 438.9 MB, free: 33.62 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01063/0.9977, allocations: 3.685 MB / 442.6 MB, free: 29.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/0.9988, allocations: 245 kB / 442.8 MB, free: 29.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/1.01, allocations: 3.96 MB / 446.8 MB, free: 25.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008818/1.018, allocations: 3.449 MB / 450.2 MB, free: 22.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/1.018, allocations: 4 kB / 450.2 MB, free: 22.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.784e-05/1.019, allocations: 19.89 kB / 450.2 MB, free: 22.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/1.043, allocations: 9.022 MB / 459.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.043, allocations: 8.094 kB / 459.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007313/1.05, allocations: 0.5109 MB / 459.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006734/1.057, allocations: 1.005 MB / 460.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004476/1.057, allocations: 51.84 kB / 460.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.072, allocations: 9.809 MB / 470.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1562/1.228, allocations: 27.72 MB / 498.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2412/1.47, allocations: 6.1 MB / 0.4927 GB, free: 98.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/1.472, allocations: 0.7159 MB / 0.4934 GB, free: 98.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007936/1.473, allocations: 10.91 kB / 0.4934 GB, free: 98.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00409/1.477, allocations: 98.02 kB / 0.4935 GB, free: 98.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007608/1.478, allocations: 236.9 kB / 0.4937 GB, free: 98.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003958/1.478, allocations: 117 kB / 0.4938 GB, free: 98.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002525/1.481, allocations: 1.133 MB / 0.4949 GB, free: 98.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.41e-07/1.481, allocations: 1.25 kB / 0.4949 GB, free: 98.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004472/1.485, allocations: 0.7314 MB / 0.4956 GB, free: 98.62 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,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 (242): * Single equations (assignments): 235 * 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%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.01547/1.501, allocations: 7.773 MB / 0.5032 GB, free: 96.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009079/1.51, allocations: 3.902 MB / 0.507 GB, free: 95.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.51, allocations: 6.156 kB / 0.507 GB, free: 95.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006083/1.516, allocations: 2.444 MB / 0.5094 GB, free: 94.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/1.518, allocations: 241.6 kB / 0.5096 GB, free: 94.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/1.535, allocations: 6.062 MB / 0.5156 GB, free: 91.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/1.536, allocations: 1.744 MB / 0.5173 GB, free: 90.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003522/1.54, allocations: 1.128 MB / 0.5184 GB, free: 89.7 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/1.54, allocations: 1.812 kB / 0.5184 GB, free: 89.7 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.593/6.133, allocations: 136.9 MB / 0.652 GB, free: 99.97 MB / 362.7 MB