Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.82/1.82, allocations: 171.2 MB / 178.4 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.407e-05, allocations: 8 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2575, allocations: 38.76 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2063/0.4639, allocations: 83.02 MB / 341.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/0.4643, allocations: 83.95 kB / 341.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.502/0.9663, allocations: 71.33 MB / 412.8 MB, free: 60.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.9664, allocations: 0 / 412.8 MB, free: 60.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.001002/0.9674, allocations: 115.8 kB / 412.9 MB, free: 60.57 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.01441/0.9818, allocations: 5.531 MB / 418.4 MB, free: 54.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.9819, allocations: 8.031 kB / 418.4 MB, free: 54.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/0.9844, allocations: 0.8528 MB / 419.3 MB, free: 54.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.995, allocations: 3.522 MB / 422.8 MB, free: 50.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.9952, allocations: 72 kB / 422.9 MB, free: 50.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00044/0.9956, allocations: 116 kB / 423 MB, free: 50.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004639/1, allocations: 1.613 MB / 424.6 MB, free: 48.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005297/1.006, allocations: 1.657 MB / 426.3 MB, free: 47.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/1.006, allocations: 15.91 kB / 426.3 MB, free: 47.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002938/1.006, allocations: 0 / 426.3 MB, free: 47.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.31e-05/1.006, allocations: 48 kB / 426.3 MB, free: 47.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02553/1.032, allocations: 9.618 MB / 435.9 MB, free: 37.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004295/1.036, allocations: 2.055 MB / 438 MB, free: 35.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002943/1.039, allocations: 1.201 MB / 439.2 MB, free: 34.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002898/1.039, allocations: 123.1 kB / 439.3 MB, free: 33.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002084/1.041, allocations: 0.9749 MB / 440.3 MB, free: 32.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=230): time 4.749e-06/1.041, allocations: 0 / 440.3 MB, free: 32.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=355): time 0.08872/1.13, allocations: 17.07 MB / 457.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.13, allocations: 274.6 kB / 457.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1825/1.313, allocations: 12.89 MB / 470.5 MB, free: 2.441 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008102/1.314, allocations: 29.7 kB / 470.5 MB, free: 2.406 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006959/1.321, allocations: 3.713 MB / 474.3 MB, free: 14.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002055/1.323, allocations: 1.131 MB / 475.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004219/1.323, allocations: 0 / 475.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002954/1.324, allocations: 432.9 kB / 475.8 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/1.327, allocations: 1.272 MB / 477.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/1.331, allocations: 1.572 MB / 478.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005201/1.337, allocations: 1.565 MB / 480.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/1.337, allocations: 0 / 480.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.01553/1.352, allocations: 4.679 MB / 484.9 MB, free: 3.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.331e-05/1.352, allocations: 37.3 kB / 484.9 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-05/1.352, allocations: 4 kB / 484.9 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/1.358, allocations: 1.019 MB / 486 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006518/1.364, allocations: 0.585 MB / 486.5 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/1.381, allocations: 12.71 MB / 499.3 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006703/1.387, allocations: 132 kB / 499.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/1.389, allocations: 139.9 kB / 499.5 MB, free: 4.48 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.0009385/1.39, allocations: 158.8 kB / 499.7 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2519/1.641, allocations: 4.415 MB / 0.4923 GB, free: 89.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003482/1.645, allocations: 0.8407 MB / 0.4931 GB, free: 89.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01545/1.66, allocations: 4.798 MB / 0.4978 GB, free: 89.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005618/1.666, allocations: 2.066 MB / 0.4998 GB, free: 88.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.515e-05/1.666, allocations: 10.34 kB / 0.4998 GB, free: 88.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.835e-05/1.666, allocations: 18.14 kB / 0.4998 GB, free: 88.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03592/1.702, allocations: 13.33 MB / 0.5128 GB, free: 85.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.979e-05/1.702, allocations: 0.6562 kB / 0.5128 GB, free: 85.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005606/1.708, allocations: 0.511 MB / 0.5133 GB, free: 85.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005192/1.713, allocations: 1.068 MB / 0.5144 GB, free: 85.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006291/1.714, allocations: 49.45 kB / 0.5144 GB, free: 85.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/1.726, allocations: 12.36 MB / 0.5265 GB, free: 74.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1185/1.845, allocations: 27.74 MB / 0.5536 GB, free: 56.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/1.864, allocations: 7.267 MB / 0.5607 GB, free: 49.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004804/1.868, allocations: 1.581 MB / 0.5622 GB, free: 48.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002665/1.871, allocations: 27.75 kB / 0.5623 GB, free: 47.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005894/1.877, allocations: 113.5 kB / 0.5624 GB, free: 47.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009811/1.878, allocations: 248.3 kB / 0.5626 GB, free: 47.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003815/1.879, allocations: 116.1 kB / 0.5627 GB, free: 47.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.02188/1.9, allocations: 10.27 MB / 0.5728 GB, free: 38.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.9, allocations: 0 / 0.5728 GB, free: 38.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006843/1.907, allocations: 1.421 MB / 0.5741 GB, free: 37.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET6188585353.x[2],$STATESET6188585353.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET6188585352.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.02056/1.928, allocations: 8.378 MB / 0.5823 GB, free: 29.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.938, allocations: 4.209 MB / 0.5864 GB, free: 24.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.938, allocations: 4.875 kB / 0.5864 GB, free: 24.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006234/1.944, allocations: 2.708 MB / 0.5891 GB, free: 22.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004819/1.949, allocations: 411.2 kB / 0.5895 GB, free: 21.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04464/1.994, allocations: 18.65 MB / 0.6077 GB, free: 4.598 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007156/2.001, allocations: 4.123 MB / 0.6117 GB, free: 448 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00485/2.006, allocations: 0.8494 MB / 0.6125 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009638/2.016, allocations: 3.29 MB / 0.6158 GB, free: 12.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/2.016, allocations: 0 / 0.6158 GB, free: 12.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9074/2.923, allocations: 144 MB / 0.7564 GB, free: 10.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/2.923, allocations: 203.7 kB / 0.7566 GB, free: 10.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.817/12.74, allocations: 0 / 0.7566 GB, free: 10.18 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat does not exist to compare? outputFormat=mat