Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.687/1.687, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.377e-05/2.384e-05, allocations: 4 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2648, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.4126, allocations: 83.02 MB / 341.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.4129, allocations: 83.95 kB / 341.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5123/0.9252, allocations: 71.32 MB / 412.8 MB, free: 60.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.9253, allocations: 0 / 412.8 MB, free: 60.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0009752/0.9263, allocations: 115.9 kB / 412.9 MB, free: 60.66 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01426/0.9406, allocations: 5.538 MB / 418.4 MB, free: 55.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.9406, allocations: 8.031 kB / 418.4 MB, free: 55.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00235/0.943, allocations: 0.8528 MB / 419.3 MB, free: 54.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.9536, allocations: 3.521 MB / 422.8 MB, free: 50.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.9538, allocations: 76 kB / 422.9 MB, free: 50.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004426/0.9542, allocations: 116 kB / 423 MB, free: 50.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004451/0.9587, allocations: 1.609 MB / 424.6 MB, free: 48.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004175/0.9629, allocations: 1.661 MB / 426.2 MB, free: 47.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.558e-05/0.963, allocations: 11.91 kB / 426.3 MB, free: 47.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.9633, allocations: 0 / 426.3 MB, free: 47.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.036e-05/0.9633, allocations: 48 kB / 426.3 MB, free: 47.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02447/0.9878, allocations: 9.622 MB / 435.9 MB, free: 37.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004279/0.9921, allocations: 2.051 MB / 438 MB, free: 35.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/0.9951, allocations: 1.19 MB / 439.2 MB, free: 34.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003023/0.9955, allocations: 127.1 kB / 439.3 MB, free: 33.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002131/0.9976, allocations: 0.9749 MB / 440.3 MB, free: 32.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=230): time 5.019e-06/0.9977, allocations: 1.781 kB / 440.3 MB, free: 32.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=355): time 0.08236/1.08, allocations: 17.07 MB / 457.3 MB, free: 15.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.213e-05/1.08, allocations: 274.6 kB / 457.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1651/1.245, allocations: 12.88 MB / 470.5 MB, free: 2.535 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007585/1.246, allocations: 29.7 kB / 470.5 MB, free: 2.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004539/1.251, allocations: 2.852 MB / 473.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001928/1.253, allocations: 1.127 MB / 474.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000395/1.253, allocations: 4 kB / 474.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002879/1.253, allocations: 433.7 kB / 474.9 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003681/1.257, allocations: 1.272 MB / 476.2 MB, free: 12.78 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004232/1.261, allocations: 1.579 MB / 477.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005196/1.266, allocations: 1.546 MB / 479.3 MB, free: 9.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.36e-05/1.267, allocations: 4 kB / 479.3 MB, free: 9.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.01285/1.279, allocations: 3.989 MB / 483.3 MB, free: 5.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.088e-05/1.28, allocations: 41.5 kB / 483.4 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/1.28, allocations: 8 kB / 483.4 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005441/1.285, allocations: 1.009 MB / 484.4 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006482/1.292, allocations: 0.585 MB / 485 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/1.308, allocations: 12.72 MB / 497.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006666/1.314, allocations: 127.9 kB / 497.8 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009081/1.315, allocations: 139.9 kB / 497.9 MB, free: 6.07 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: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 290 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.0009072/1.316, allocations: 152.7 kB / 498.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01464/1.331, allocations: 4.419 MB / 0.4907 GB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00304/1.334, allocations: 0.8372 MB / 0.4915 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2484/1.582, allocations: 4.804 MB / 0.4962 GB, free: 89.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006133/1.589, allocations: 2.066 MB / 0.4982 GB, free: 89.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.982e-05/1.589, allocations: 6.5 kB / 0.4983 GB, free: 89.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001073/1.589, allocations: 16.59 kB / 0.4983 GB, free: 89.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0374/1.626, allocations: 13.35 MB / 0.5113 GB, free: 86.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/1.626, allocations: 0 / 0.5113 GB, free: 86.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005556/1.632, allocations: 0.5067 MB / 0.5118 GB, free: 86.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005226/1.637, allocations: 1.063 MB / 0.5128 GB, free: 85.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006558/1.638, allocations: 49 kB / 0.5129 GB, free: 85.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/1.65, allocations: 12.36 MB / 0.525 GB, free: 74.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1185/1.769, allocations: 27.73 MB / 0.552 GB, free: 57.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/1.786, allocations: 7.268 MB / 0.5591 GB, free: 50.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004725/1.791, allocations: 1.578 MB / 0.5607 GB, free: 49.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002546/1.794, allocations: 27.95 kB / 0.5607 GB, free: 49.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005992/1.8, allocations: 118.4 kB / 0.5608 GB, free: 49.31 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/1.801, allocations: 240.4 kB / 0.5611 GB, free: 49.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004149/1.801, allocations: 122.8 kB / 0.5612 GB, free: 49.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.02134/1.823, allocations: 10.27 MB / 0.5712 GB, free: 39.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.823, allocations: 0 / 0.5712 GB, free: 39.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006755/1.829, allocations: 1.422 MB / 0.5726 GB, free: 38.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET5154382217.x[2],$STATESET5154382217.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET5154382216.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 239 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 47,3 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0196/1.849, allocations: 8.384 MB / 0.5808 GB, free: 30.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0103/1.859, allocations: 4.22 MB / 0.5849 GB, free: 26.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.859, allocations: 0 / 0.5849 GB, free: 26.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006438/1.866, allocations: 2.708 MB / 0.5875 GB, free: 23.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004886/1.871, allocations: 409.7 kB / 0.5879 GB, free: 23.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04567/1.917, allocations: 19.01 MB / 0.6065 GB, free: 5.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007846/1.924, allocations: 4.124 MB / 0.6105 GB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009225/1.934, allocations: 3.34 MB / 0.6138 GB, free: 14.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/1.934, allocations: 0 / 0.6138 GB, free: 14.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.202/11.14, allocations: 0.8483 GB / 1.462 GB, free: 94.89 MB / 394.7 MB