Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.05/2.05, allocations: 225.8 MB / 239.3 MB, free: 1.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.775e-05/2.773e-05, allocations: 0 / 292.7 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 50.41 MB / 343.2 MB, free: 8.984 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.498/0.603, allocations: 95.7 MB / 438.9 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.6034, allocations: 87.19 kB / 438.9 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3487/0.9521, allocations: 79.44 MB / 0.5062 GB, free: 1.426 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.9521, allocations: 3.938 kB / 0.5062 GB, free: 1.422 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001018/0.9532, allocations: 120 kB / 0.5063 GB, free: 1.305 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01666/0.9698, allocations: 5.536 MB / 0.5118 GB, free: 11.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.9699, allocations: 8.031 kB / 0.5118 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001162/0.9711, allocations: 287.4 kB / 0.512 GB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002297/0.9734, allocations: 0.857 MB / 0.5129 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/0.9863, allocations: 3.601 MB / 0.5164 GB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.9866, allocations: 160.1 kB / 0.5165 GB, free: 6.695 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000702/0.9873, allocations: 207.9 kB / 0.5167 GB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006681/0.994, allocations: 1.987 MB / 0.5187 GB, free: 4.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.799e-05/0.9941, allocations: 0 / 0.5187 GB, free: 4.445 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003553/0.9945, allocations: 92 kB / 0.5188 GB, free: 4.355 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.058e-05/0.9946, allocations: 48 kB / 0.5188 GB, free: 4.309 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008782/1.003, allocations: 1.762 MB / 0.5205 GB, free: 2.543 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04254/1.046, allocations: 10.13 MB / 0.5304 GB, free: 8.168 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008175/1.054, allocations: 2.263 MB / 0.5326 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005655/1.06, allocations: 1.311 MB / 0.5339 GB, free: 4.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002858/1.06, allocations: 46.17 kB / 0.534 GB, free: 4.477 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004177/1.064, allocations: 1.1 MB / 0.535 GB, free: 3.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=246): time 7.634e-06/1.064, allocations: 0 / 0.535 GB, free: 3.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=382): time 0.4349/1.499, allocations: 19.11 MB / 0.5537 GB, free: 105.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1138/1.613, allocations: 30.79 MB / 0.5838 GB, free: 97.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1587/1.772, allocations: 13.37 MB / 0.5968 GB, free: 92.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007231/1.773, allocations: 88.2 kB / 0.5969 GB, free: 92.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005161/1.778, allocations: 3.723 MB / 0.6005 GB, free: 90.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00165/1.78, allocations: 1.263 MB / 0.6018 GB, free: 89.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003727/1.78, allocations: 67.69 kB / 0.6018 GB, free: 89.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/1.78, allocations: 441.6 kB / 0.6022 GB, free: 88.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00346/1.784, allocations: 1.273 MB / 0.6035 GB, free: 88.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003726/1.787, allocations: 1.598 MB / 0.6051 GB, free: 87.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003786/1.791, allocations: 1.478 MB / 0.6065 GB, free: 86.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/1.791, allocations: 0 / 0.6065 GB, free: 86.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01766/1.809, allocations: 5.283 MB / 0.6117 GB, free: 84.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/1.809, allocations: 7.406 kB / 0.6117 GB, free: 84.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/1.809, allocations: 3.719 kB / 0.6117 GB, free: 84.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009388/1.818, allocations: 1.431 MB / 0.6131 GB, free: 84.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005547/1.824, allocations: 0.5676 MB / 0.6136 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03776/1.862, allocations: 22.26 MB / 0.6354 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006488/1.868, allocations: 199.6 kB / 0.6355 GB, free: 66.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008242/1.869, allocations: 126.8 kB / 0.6357 GB, free: 66.45 MB / 442.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: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,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 (318): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 0 * 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 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0008312/1.87, allocations: 278.5 kB / 0.6359 GB, free: 66.17 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002396/1.872, allocations: 0.8565 MB / 0.6368 GB, free: 65.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01983/1.892, allocations: 5.475 MB / 0.6421 GB, free: 60.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008603/1.901, allocations: 2.382 MB / 0.6444 GB, free: 58.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.478e-05/1.901, allocations: 6.953 kB / 0.6445 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.24e-05/1.901, allocations: 22.55 kB / 0.6445 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04042/1.941, allocations: 14.1 MB / 0.6582 GB, free: 47.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/1.942, allocations: 0.6875 kB / 0.6582 GB, free: 47.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004866/1.946, allocations: 0.4954 MB / 0.6587 GB, free: 46.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009481/1.956, allocations: 1.438 MB / 0.6601 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005011/1.956, allocations: 82.53 kB / 0.6602 GB, free: 45.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03302/1.99, allocations: 20.36 MB / 0.6801 GB, free: 25.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09602/2.086, allocations: 27.24 MB / 0.7067 GB, free: 304 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/2.118, allocations: 7.864 MB / 0.7144 GB, free: 8.773 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00535/2.123, allocations: 1.594 MB / 0.7159 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002136/2.125, allocations: 91.75 kB / 0.716 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005238/2.13, allocations: 170.6 kB / 0.7162 GB, free: 7.043 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001135/2.132, allocations: 283.2 kB / 0.7165 GB, free: 6.867 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004022/2.132, allocations: 109.5 kB / 0.7166 GB, free: 6.773 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.3361/2.468, allocations: 10.76 MB / 0.7271 GB, free: 106.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.468, allocations: 7.344 kB / 0.7271 GB, free: 106.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008056/2.476, allocations: 1.761 MB / 0.7288 GB, free: 106.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.02681/2.503, allocations: 9.159 MB / 0.7377 GB, free: 104.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0109/2.514, allocations: 4.737 MB / 0.7424 GB, free: 103.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/2.514, allocations: 2.594 kB / 0.7424 GB, free: 103.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007367/2.521, allocations: 3.279 MB / 0.7456 GB, free: 102.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004891/2.526, allocations: 499 kB / 0.746 GB, free: 102.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04551/2.572, allocations: 19.11 MB / 0.7647 GB, free: 98.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00651/2.579, allocations: 4.211 MB / 0.7688 GB, free: 98.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004343/2.583, allocations: 0.8403 MB / 0.7696 GB, free: 98.04 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007802/2.591, allocations: 3.435 MB / 0.773 GB, free: 97.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/2.591, allocations: 0 / 0.773 GB, free: 97.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9997/3.59, allocations: 164.2 MB / 0.9333 GB, free: 94.64 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002331/3.591, allocations: 258.2 kB / 0.9336 GB, free: 94.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/15.05, allocations: 0 / 0.9336 GB, free: 94.3 MB / 474.7 MB